Instance Method


Tells the delegate the system is about to restore the peripheral manager.


optional func peripheralManager(_ peripheral: CBPeripheralManager, willRestoreState dict: [String : Any])



The peripheral manager undergoing state restoration.


A dictionary that contains information about the peripheral manager, which the system preserved when the app terminated. For the available keys to this dictionary, see Peripheral Manager State Restoration Options.


For apps that opt in to the state preservation and restoration feature, Core Bluetooth invokes this method when relaunching your app into the background to complete some Bluetooth-related task. Use this method to synchronize the state of your app with the state of the Bluetooth system.

See Also

Monitoring Changes to the Peripheral Manager’s State

func peripheralManagerDidUpdateState(CBPeripheralManager)

Tells the delegate the peripheral manager’s state updated.


Peripheral Manager State Restoration Options

Keys used to specify options when restoring the state of a peripheral manager.