Class CBCentralManager
- Namespace
- CoreBluetooth
An object that scans for, discovers, connects to, and manages peripherals. https://developer.apple.com/documentation/corebluetooth/cbcentralmanager
public class CBCentralManager : CBManager, IDisposable
- Inheritance
-
CBCentralManager
- Implements
- Inherited Members
Constructors
CBCentralManager(ICBCentralManagerDelegate, CBCentralManagerInitOptions)
public CBCentralManager(ICBCentralManagerDelegate centralDelegate = null, CBCentralManagerInitOptions options = null)
Parameters
centralDelegate
ICBCentralManagerDelegateoptions
CBCentralManagerInitOptions
Properties
CallbackContext
ICBCentralManagerDelegate callbacks will be called in this context.
public SynchronizationContext CallbackContext { get; set; }
Property Value
Delegate
public ICBCentralManagerDelegate Delegate { get; set; }
Property Value
IsScanning
public bool IsScanning { get; }
Property Value
Methods
CancelPeripheralConnection(CBPeripheral)
public void CancelPeripheralConnection(CBPeripheral peripheral)
Parameters
peripheral
CBPeripheral
Connect(CBPeripheral)
public void Connect(CBPeripheral peripheral)
Parameters
peripheral
CBPeripheral
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
RetrievePeripherals(params string[])
public CBPeripheral[] RetrievePeripherals(params string[] peripheralIds)
Parameters
peripheralIds
string[]
Returns
ScanForPeripherals(string[])
public void ScanForPeripherals(string[] serviceUUIDs = null)
Parameters
serviceUUIDs
string[]
StopScan()
public void StopScan()