Global Variable

UIApplicationLaunchOptionsBluetoothPeripheralsKey

A key indicating that the app should continue actions associated with its Bluetooth peripheral objects.

Declaration

const UIApplicationLaunchOptionsKey UIApplicationLaunchOptionsBluetoothPeripheralsKey;

Discussion

The presence of this key indicates that the app previously had one or more CBPeripheralManager objects and was relaunched by the Bluetooth system to continue actions associated with those objects. The value of this key is an NSArray object containing one or more NSString objects.

Each string in the array represents the restoration identifier for a peripheral manager object. This is the same string you assigned to the CBPeripheralManagerOptionRestoreIdentifierKey key when you initialized the peripheral manager object previously. The system provides the restoration identifiers only for peripheral managers that had published or advertised services.