Instance Method


Invoked when the peripheral manager's state is updated.



- (void)peripheralManagerDidUpdateState:(CBPeripheralManager *)peripheral;



The peripheral manager whose state has changed.


You implement this required method to ensure that Bluetooth low energy is supported and available to use on the local peripheral device. Issue commands to the peripheral manager only when the state of the peripheral manager is powered on, as indicated by the CBPeripheralManagerStatePoweredOn constant. A state with a value lower than CBPeripheralManagerStatePoweredOn implies that advertising has stopped and that any connected centrals have been disconnected. If the state moves below CBPeripheralManagerStatePoweredOff, advertising has stopped and must be explicitly restarted. In addition, the local database is cleared and all services must be explicitly added again. For a complete list and discussion of the possible values representing the state of the peripheral manager, see the CBPeripheralManagerState enumeration in CBPeripheralManager.

See Also

Monitoring Changes to the Peripheral Manager’s State

- peripheralManager:willRestoreState:

Invoked when the peripheral manager is about to be restored by the system.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software