Initializes the central manager with a specified delegate and dispatch queue.
SDKs
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
Framework
- Core Bluetooth
Declaration
convenience init(delegate: CBCentral Manager Delegate?, queue: Dispatch Queue?)
Parameters
delegate
The delegate that receives central events.
queue
The dispatch queue used to dispatch the central role events. If the value is
nil
, the central manager dispatches central role events using the main queue.
Return Value
Returns a newly initialized central manager.