Initializer

init(delegate:queue:)

Initializes the central manager with a specified delegate and dispatch queue.

Declaration

convenience init(delegate: CBCentralManagerDelegate?, queue: DispatchQueue?)

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.

See Also

Initializing a Central Manager

init()

Initializes the central manager without a delegate.

init(delegate: CBCentralManagerDelegate?, queue: DispatchQueue?, options: [String : Any]?)

Initializes the central manager with specified delegate, dispatch queue, and initialization options.

Central Manager Initialization Options

Keys used to pass options when initializing a central manager.

Central Manager State Restoration Options

Keys used to pass state restoration options to the central manager initializer.