An object that represents a remote device.
- iOS 8.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Bluetooth
CBPeer class is an abstract base class that defines common behavior for objects representing remote devices. You typically don’t create instances of either
CBPeer 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
CBCentral) or a peripheral (by creating an instance of
CBPeripheral), 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
CBPeer to represent discovered remote devices. The concrete subclasses of