CBBluetoothManager Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | CBBluetoothManager.h CBBluetoothManager.m |
Overview
Entry point to the bluetooth role. Commands should only be issued when its state is CBBluetoothManager.
state
The current state of the manager, initially set to CBBluetoothStateUnknown. Updates are provided by required delegate method bluetoothManagerDidUpdateState:.
@property (nonatomic, assign, readonly) CBBluetoothState stateDeclared In
CBBluetoothManager.h
delegate
The delegate object that will receive central events.
@property (nonatomic, weak, nullable) id<CBBluetoothManagerDelegate> delegateDeclared In
CBBluetoothManager.h
– initWithDelegate:
The initialization call. The events of the bluetooth role will be dispatched on the provided queue. If nil, the main queue will be used.
- (nullable instancetype)initWithDelegate:(nonnull id<CBBluetoothManagerDelegate>)delegateParameters
delegate |
The delegate that will receive bluetooth role events. |
|---|
Return Value
A new instance of bluetooth manager.
Declared In
CBBluetoothManager.h