Platforms to show: All Mac Windows Linux Cross-Platform

Back to CBPeripheralManagerMBS class.

CBPeripheralManagerMBS.authorizationStatus as integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the app’s authorization status for sharing data while in the background state.

A value indicating whether the app is authorized to share data using Bluetooth services while in the background. For a list of the possible values, see constants.

The authorization status of a given app is managed by the system and determined by several factors. Apps must be explicitly authorized to share data using Bluetooth services while in the background state. The system automatically displays a request for user authorization when your app first attempts to use Bluetooth services to share data.
Calling this method does not prompt the user for access. Instead, you use this method to detect restricted access and simply hide any affected UI features from the user.

Deprecated in MacOS 10.15 in favor of CBManagerMBS' authorization property.

CBPeripheralManagerMBS.Available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Checks whether this class is available.

Returns true for MacOS 10.9 or newer.

CBPeripheralManagerMBS.CBPeripheralManagerOptionRestoreIdentifierKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys used to pass options to the Constructor.

A string containing a unique identifier (UID) for the peripheral manager that is being instantiated.
The system uses this UID to identify a specific peripheral manager. As a result, the UID must remain the same for subsequent executions of the app in order for the peripheral manager to be successfully restored.

CBPeripheralManagerMBS.CBPeripheralManagerOptionShowPowerAlertKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys used to pass options to the Constructor.

A Boolean value that specifies whether the system should display a warning dialog to the user if Bluetooth is powered off when the peripheral manager is instantiated.
The value for this key is a boolean. If the key is not specified, the default value is false.

CBPeripheralManagerMBS.CBPeripheralManagerRestoredStateAdvertisementDataKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys used to pass options to the constructor.

A dictionary containing the data that the peripheral manager was advertising at the time the app was terminated by the system.

CBPeripheralManagerMBS.CBPeripheralManagerRestoredStateServicesKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys used to pass options to the constructor.

An array of CBMutableService objects that contains all of the services that were published to the local peripheral’s database at the time the app was terminated by the system.

The items on this page are in the following plugins: MBS Bluetooth Plugin.


The biggest plugin in space...