---
title: "init(delegate:queue:)"
framework: corebluetooth
role: symbol
role_heading: Initializer
path: "corebluetooth/cbperipheralmanager/init(delegate:queue:)"
---

# init(delegate:queue:)

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

## Declaration

```swift
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

Return Value Returns a newly initialized peripheral manager.

## Discussion

Discussion For more information, see Core Bluetooth Programming Guide.

## See Also

### Initializing a Peripheral Manager

- [init()](corebluetooth/cbperipheralmanager/init().md)
- [init(delegate:queue:options:)](corebluetooth/cbperipheralmanager/init(delegate:queue:options:).md)
- [delegate](corebluetooth/cbperipheralmanager/delegate.md)
- [Peripheral Manager Initialization Options](corebluetooth/peripheral-manager-initialization-options.md)
