init(delegate:queue:options:)
Initializes the central manager with specified delegate, dispatch queue, and initialization options.
Declaration
init(delegate: (any CBCentralManagerDelegate)?, queue: dispatch_queue_t?, options: [String : Any]? = nil)Parameters
- delegate:
The delegate that receives the 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. - options:
An optional dictionary that contains initialization options for a central manager. For available options, see Central Manager Initialization Options.
Return Value
Returns a newly initialized central manager.
Discussion
This method is the designated initializer for the CBCentralManager class.