The delegate of a
CBPeripheral object must adopt the
CBPeripheral protocol, a protocol consisting of numerous optional methods and one required method. The protocol’s optional methods are used by the delegate to verify publishing and advertising, and to monitor read, write, and subscription requests from remote central devices. The protocol’s required method, which indicates whether the peripheral manager is available, is called when the peripheral manager’s state is updated.
- iOS 6.0+
- macOS 10.9+
- tvOS 9.0+