One Logo Pool Ball
CoreBluetooth · IOS API REFERENCE

CBCentralManager

class · iOS 5.0+ · SDK 27.1

class CBCentralManager

Members (14)

static · iOS 13.0+

supports

TypeScript
static supports(features: CBCentralManager_Feature): boolean
Swift declaration
class func supports(_ features: CBCentralManager.Feature) -> Bool
method · iOS 5.0+

cancelPeripheralConnection

TypeScript
cancelPeripheralConnection(peripheral: CBPeripheral): void
Swift declaration
func cancelPeripheralConnection(_ peripheral: CBPeripheral)
method · iOS 5.0+

connect

TypeScript
connect(peripheral: CBPeripheral, options?: (Record<string, unknown>) | null): void
Swift declaration
func connect(_ peripheral: CBPeripheral, options: [String : Any]? = nil)
init · iOS 5.0+

init

TypeScript
static init(): CBCentralManager
Swift declaration
convenience init()
init · iOS 5.0+

init

TypeScript
static initDelegateQueue(delegate?: (Implements<CBCentralManagerDelegate> | SDKHandle) | null, queue?: (_Dispatch_DispatchQueue) | null): CBCentralManager
Swift declaration
convenience init(delegate: (any CBCentralManagerDelegate)?, queue: dispatch_queue_t?)
init · iOS 7.0+

init

TypeScript
static initDelegateQueueOptions(delegate?: (Implements<CBCentralManagerDelegate> | SDKHandle) | null, queue?: (_Dispatch_DispatchQueue) | null, options?: (Record<string, unknown>) | null): CBCentralManager
Swift declaration
init(delegate: (any CBCentralManagerDelegate)?, queue: dispatch_queue_t?, options: [String : Any]? = nil)
method · iOS 13.0+

registerForConnectionEvents

TypeScript
registerForConnectionEvents(options?: (NativeMap<CBConnectionEventMatchingOption, unknown>) | null): void
Swift declaration
func registerForConnectionEvents(options: [CBConnectionEventMatchingOption : Any]? = nil)
method · iOS 7.0+

retrieveConnectedPeripherals

TypeScript
retrieveConnectedPeripherals(serviceUUIDs: Array<CBUUID>): Array<CBPeripheral>
Swift declaration
func retrieveConnectedPeripherals(withServices serviceUUIDs: [CBUUID]) -> [CBPeripheral]
method · iOS 7.0+

retrievePeripherals

TypeScript
retrievePeripherals(identifiers: Array<string>): Array<CBPeripheral>
Swift declaration
func retrievePeripherals(withIdentifiers identifiers: [UUID]) -> [CBPeripheral]
method · iOS 5.0+

scanForPeripherals

TypeScript
scanForPeripherals(serviceUUIDs?: (Array<CBUUID>) | null, options?: (Record<string, unknown>) | null): void
Swift declaration
func scanForPeripherals(withServices serviceUUIDs: [CBUUID]?, options: [String : Any]? = nil)
method · iOS 5.0+

stopScan

TypeScript
stopScan(): void
Swift declaration
func stopScan()
get · iOS 5.0+

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
weak var delegate: (any CBCentralManagerDelegate)? { get set }
set · iOS 5.0+

delegate

TypeScript
set delegate(value: (Implements<CBCentralManagerDelegate> | SDKHandle) | null)
Swift declaration
weak var delegate: (any CBCentralManagerDelegate)? { get set }
get · iOS 9.0+

isScanning

TypeScript
get isScanning(): boolean
Swift declaration
var isScanning: Bool { get }

Skipped declarations

No declarations were skipped in this snapshot.

All CoreBluetooth types →