Table of Contents

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 ICBCentralManagerDelegate
options CBCentralManagerInitOptions

Properties

CallbackContext

ICBCentralManagerDelegate callbacks will be called in this context.

public SynchronizationContext CallbackContext { get; set; }

Property Value

SynchronizationContext

Delegate

public ICBCentralManagerDelegate Delegate { get; set; }

Property Value

ICBCentralManagerDelegate

IsScanning

public bool IsScanning { get; }

Property Value

bool

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

CBPeripheral[]

ScanForPeripherals(string[])

public void ScanForPeripherals(string[] serviceUUIDs = null)

Parameters

serviceUUIDs string[]

StopScan()

public void StopScan()