init(delegate:queue:)
Initializes the peripheral manager with a specified delegate and dispatch queue.
Declaration
convenience init(delegate: (any CBPeripheralManagerDelegate)?, queue: dispatch_queue_t?)Parameters
- delegate:
The delegate to receive the peripheral role events.
- queue:
The dispatch queue for dispatching the peripheral role events. If the value is
nil, the peripheral manager dispatches peripheral role events using the main queue.
Return Value
Returns a newly initialized peripheral manager.
Discussion
For more information, see Core Bluetooth Programming Guide.