---
title: "init(centralManager:delegate:dataSource:)"
framework: Playground Bluetooth
role: symbol
role_heading: Initializer
platforms: [xcode 10.2+, swift playgrounds 2.0+]
path: playgroundbluetooth/playgroundbluetoothconnectionview/3029511-init
---

# init(centralManager:delegate:dataSource:)

Creates a new, empty view that can be populated with items when peripherals are connected to the central manager.

## Declaration

```swift
init(centralManager: PlaygroundBluetoothCentralManager, delegate: PlaygroundBluetoothConnectionViewDelegate? = nil, dataSource: PlaygroundBluetoothConnectionViewDataSource? = nil)
```

## Parameters

- `centralManager`: The central manager whose peripherals will be displayed in the view.
- `delegate`: A delegate you supply to make decisions about which peripherals are displayed in the view.
- `dataSource`: A data source that provides subviews for available peripherals.

## See Also

### Creating Connection Views

- [init(coder:)](playgroundbluetooth/playgroundbluetoothconnectionview/3029512-init.md)
- [dataSource](playgroundbluetooth/playgroundbluetoothconnectionview/3029509-datasource.md)
