CBCentralManager Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the local central device in Bluetooth LE. Use the CBCentralManager to scan, discover and connect to remote peripherals.
[Foundation.Register("CBCentralManager", true)]
public class CBCentralManager : CoreBluetooth.CBManager
[<Foundation.Register("CBCentralManager", true)>]
type CBCentralManager = class
inherit CBManager
- Inheritance
- Attributes
Constructors
| Name | Description |
|---|---|
| CBCentralManager() |
Default constructor that initializes a new instance of this class with no parameters. |
| CBCentralManager(DispatchQueue) |
Creates a new CBCentralManager with the specified |
| CBCentralManager(ICBCentralManagerDelegate, DispatchQueue, CBCentralInitOptions) |
Creates a new CBCentralManager with the specified central delegate, dispatch queue, and options. |
| CBCentralManager(ICBCentralManagerDelegate, DispatchQueue, NSDictionary) |
Creates a new CBCentralManager with the specified central delegate, dispatch queue, and options. |
| CBCentralManager(ICBCentralManagerDelegate, DispatchQueue) |
Creates a new CBCentralManager with the specified central delegate and dispatch queue. |
| CBCentralManager(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| CBCentralManager(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| Delegate |
An instance of the CoreBluetooth.ICBCentralManagerDelegate model class which acts as the class delegate. |
| Description | (Inherited from NSObject) |
| ExposedBindings | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| IsScanning |
Gets a Boolean value that tells whether the manager is currently scanning for peripherals. |
| OptionDeviceAccessForMedia |
Represents the value associated with the constant 'CBCentralManagerOptionDeviceAccessForMedia'. |
| OptionRestoreIdentifierKey |
Represents the value associated with the constant CBCentralManagerOptionRestoreIdentifierKey |
| OptionShowPowerAlertKey |
Represents the value associated with the constant CBCentralManagerOptionShowPowerAlertKey |
| OptionStartDelayKey | |
| RestoredStatePeripheralsKey |
Represents the value associated with the constant CBCentralManagerRestoredStatePeripheralsKey |
| RestoredStateScanOptionsKey |
Represents the value associated with the constant CBCentralManagerRestoredStateScanOptionsKey |
| RestoredStateScanServicesKey |
Represents the value associated with the constant CBCentralManagerRestoredStateScanServicesKey |
| RetainCount | (Inherited from NSObject) |
| ScanOptionAllowDuplicatesKey |
Represents the value associated with the constant CBCentralManagerScanOptionAllowDuplicatesKey |
| ScanOptionSolicitedServiceUUIDsKey |
Represents the value associated with the constant CBCentralManagerScanOptionSolicitedServiceUUIDsKey |
| Self | (Inherited from NSObject) |
| State | (Inherited from CBManager) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| WeakDelegate |
An object that can respond to the delegate protocol for this type |
| Zone | (Inherited from NSObject) |
Methods
Events
| Name | Description |
|---|---|
| ConnectedPeripheral |
Event raised by the object. |
| ConnectionEventDidOccur | |
| DidDisconnectPeripheral | |
| DidUpdateAncsAuthorization | |
| DisconnectedPeripheral |
Event raised by the object. |
| DiscoveredPeripheral |
Event raised by the object. |
| FailedToConnectPeripheral |
Event raised by the object. |
| UpdatedState |
Event raised by the object. |
| WillRestoreState |
Event raised by the object. |