Platforms to show: All Mac Windows Linux Cross-Platform

Back to CBCentralManagerMBS class.

CBCentralManagerMBS.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
Whether this class is available.

Returns true on MacOS 10.7 or later.

CBCentralManagerMBS.CBATTErrorDomain as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The domain for Core Bluetooth ATT errors.

This value is used in the NSError class.

CBCentralManagerMBS.CBCentralManagerOptionRestoreIdentifierKey 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 CBCentralManager method.

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

CBCentralManagerMBS.CBCentralManagerOptionShowPowerAlertKey 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 CBCentralManager method.

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

CBCentralManagerMBS.CBCentralManagerRestoredStatePeripheralsKey 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 options keys.

See connectPeripheral method.
An array of CBPeripheral objects containing all peripherals that were connected or pending connection at the time the application was terminated by the system. When possible, all known information for each peripheral will be restored, including any discovered services, characteristics and descriptors, as well as characteristic notification states.

CBCentralManagerMBS.CBCentralManagerRestoredStateScanOptionsKey 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 options keys.

A dictionary containing the scan options at the time the application was terminated by the system.
See also scanForPeripheralsWithServices method.

CBCentralManagerMBS.CBCentralManagerRestoredStateScanServicesKey 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 options keys.

An array of CBUUID objects containing the service(s) being scanned for at the time the application was terminated by the system.
See also scanForPeripheralsWithServices method.

CBCentralManagerMBS.CBCentralManagerScanOptionAllowDuplicatesKey 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 scanForPeripheralsWithServices method.

A Boolean value that specifies whether the scan should run without duplicate filtering.
The value for this key is a number. If true, filtering is disabled and a discovery event is generated each time the central receives an advertising packet from the peripheral. Disabling this filtering can have an adverse effect on battery life and should be used only if necessary. If false, multiple discoveries of the same peripheral are coalesced into a single discovery event. If the key is not specified, the default value is false.

CBCentralManagerMBS.CBCentralManagerScanOptionSolicitedServiceUUIDsKey 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 scanForPeripheralsWithServices method.

An array of service UUIDs (represented by CBUUID objects) that you want to scan for.
Specifying this scan option causes the central manager to also scan for peripherals soliciting any of the services contained in the array.

CBCentralManagerMBS.CBConnectPeripheralOptionNotifyOnConnectionKey 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 connectPeripheral method.

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 a number. 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.

CBCentralManagerMBS.CBConnectPeripheralOptionNotifyOnDisconnectionKey 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 connectPeripheral method.

A Boolean value that specifies whether the system should display a disconnection alert for a given peripheral if the app is suspended at the time of the disconnection.
The value for this key is a number. 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.

CBCentralManagerMBS.CBConnectPeripheralOptionNotifyOnNotificationKey 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 connectPeripheral method.

A Boolean value that specifies whether the system should display an alert for all notifications received from a given peripheral if the app is suspended at the time.
The value for this key is a number. 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.

CBCentralManagerMBS.CBErrorDomain as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The domain for Core Bluetooth errors.

This value is used in the NSError class.

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


The biggest plugin in space...