Contents

init(delegate:queue:)

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

Declaration

convenience init(delegate: (any CBCentralManagerDelegate)?, queue: dispatch_queue_t?)

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.

Discussion

For more information, see Core Bluetooth Programming Guide.

See Also

Initializing a Central Manager