IOS-CoreBluetooth-Mock/CoreBluetoothMock/CBMPeer.swift

21 lines
1.0 KiB
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Foundation
/// An object that represents a remote device.
///
/// The `CBMPeer` class is an abstract base class that defines common behavior for objects representing remote devices.
/// You typically dont create instances of either `CBMPeer` or its concrete subclasses. Instead, the system creates them
/// for you during the process of peer discovery.
///
/// Your app takes the role of either a central (by creating an instance of ``CBMCentralManager``) or a peripheral
/// (by creating an instance of `CBPeripheralManager`), and interacts through the manager with remote devices in
/// the opposite role. During the process of peer discovery, where a central device scans for peripherals advertising services,
/// the system creates objects from the concrete subclasses of `CBMPeer` to represent discovered remote devices.
/// The concrete subclasses of `CBPeer` are ``CBMPeripheral`` and `CBCentral`.
open class CBMPeer: NSObject {
/// The UUID associated with the peer.
var identifier: UUID {
fatalError()
}
}