A protocol that provides updates for local peripheral state and interactions with remote central devices.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The delegate of a
CBPeripheral object must adopt the
CBPeripheral protocol, which consists of numerous optional methods and one required method. The delegate uses the protocol’s optional methods to verify publishing and advertising, and to monitor read, write, and subscription requests from remote central devices.
The protocol’s required one method,
peripheral, which Core Bluetooth calls whenever the peripheral manager’s state updates to indicate whether the peripheral manager is available.