---
title: "init(services:queue:)"
framework: Playground Bluetooth
role: symbol
role_heading: Initializer
platforms: [xcode 10.2+, swift playgrounds 2.0+]
path: playgroundbluetooth/playgroundbluetoothcentralmanager/3029470-init
---

# init(services:queue:)

Creates a central manager that supports communicating with Bluetooth peripherals.

## Declaration

```swift
init(services: [CBUUID]?, queue: DispatchQueue = .main)
```

## Parameters

- `services`: An array of service identifiers that the central manager scans for. If nil, all peripherals in range are eligible for connection attempts.
- `queue`: The dispatch queue used to dispatch events to the central manager’s delegate.

## See Also

### Configuring Central Managers

- [delegate](playgroundbluetooth/playgroundbluetoothcentralmanager/3029468-delegate.md)
- [scanning](playgroundbluetooth/playgroundbluetoothcentralmanager/3029471-scanning.md)
