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


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



The delegate to receive the peripheral role events.


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.


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.


This method is the designated initializer for the CBPeripheralManager class.

See Also

Initializing a Peripheral Manager

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

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

var delegate: CBPeripheralManagerDelegate?

The delegate object specified to receive peripheral events.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software