Contents

bluetoothCentrals

A key indicating that the app was relaunched to handle Bluetooth-related events.

Declaration

static let bluetoothCentrals: UIApplication.LaunchOptionsKey

Discussion

The presence of this key indicates that the app previously had one or more CBCentralManager 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 central manager object. This is the same string you assigned to the CBCentralManagerOptionRestoreIdentifierKey key when you initialized the central manager object previously. The system provides the restoration identifiers only for central managers that had active or pending peripheral connections or were scanning for peripherals.

See Also

Accessing launch options