CBPeripheralManagerDelegate
A protocol that provides updates for local peripheral state and interactions with remote central devices.
Declaration
protocol CBPeripheralManagerDelegate : NSObjectProtocolOverview
The delegate of a CBPeripheralManager object must adopt the CBPeripheralManagerDelegate 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, peripheralManagerDidUpdateState(_:), which Core Bluetooth calls whenever the peripheral manager’s state updates to indicate whether the peripheral manager is available.
Topics
Monitoring Changes to the Peripheral Manager’s State
peripheralManagerDidUpdateState(_:)peripheralManager(_:willRestoreState:)Peripheral Manager State Restoration Options
Adding Services
Advertising Peripheral Data
Monitoring Subscriptions to Characteristic Values
peripheralManager(_:central:didSubscribeTo:)peripheralManager(_:central:didUnsubscribeFrom:)peripheralManagerIsReady(toUpdateSubscribers:)