Contents

init(delegate:queue:options:)

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

Declaration

init(delegate: (any CBPeripheralManagerDelegate)?, queue: dispatch_queue_t?, options: [String : Any]? = nil)

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.

  • options:

    An optional dictionary containing initialization options for a peripheral manager. For available options, see Peripheral Manager Initialization Options.

Return Value

Returns a newly initialized peripheral manager.

Discussion

This method is the designated initializer for the CBPeripheralManager class.

See Also

Initializing a Peripheral Manager