Initializer

init(delegate:queue:)

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

Declaration

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

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.

See Also

Initializing a Peripheral Manager

init()

Initializes the peripheral manager without a delegate.

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

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

var delegate: CBPeripheralManagerDelegate?

The delegate object specified to receive peripheral events.

Peripheral Manager Initialization Options

Keys used to specify options when creating a peripheral manager.