Global Variable

CBConnectPeripheralOptionNotifyOnConnectionKey

Declaration

let CBConnectPeripheralOptionNotifyOnConnectionKey: String

Discussion

A Boolean value that specifies whether the system should display an alert for a given peripheral if the app is suspended when a successful connection is made.

The value for this key is an NSNumber object. This key is useful for apps that have not specified the bluetooth-central background mode and cannot display their own alert. If more than one app has requested notification for a given peripheral, the one that was most recently in the foreground receives the alert. If the key is not specified, the default value is false.

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