---
title: PlaygroundBluetoothConnectionView
framework: Playground Bluetooth
role: symbol
role_heading: Class
platforms: [xcode 10.2+, swift playgrounds 2.0+]
path: playgroundbluetooth/playgroundbluetoothconnectionview
---

# PlaygroundBluetoothConnectionView

A view that displays the connection status of a peripheral to the central manager for the current page and manages connections to other peripherals.

## Declaration

```swift
class PlaygroundBluetoothConnectionView : UIView
```

## Overview

Overview The view can display peripheral names, icons, connection statuses, and battery levels.

## Topics

### Creating Connection Views

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

### Displaying Peripherals

- [setItem(_:forPeripheral:)](playgroundbluetooth/playgroundbluetoothconnectionview/3029517-setitem.md)
- [PlaygroundBluetoothConnectionView.Item](playgroundbluetooth/playgroundbluetoothconnectionview/item.md)

### Handling State Changes

- [delegate](playgroundbluetooth/playgroundbluetoothconnectionview/3029510-delegate.md)
- [PlaygroundBluetoothConnectionView.State](playgroundbluetooth/playgroundbluetoothconnectionview/state.md)

### Displaying Individual Details

- [setBatteryLevel(_:forPeripheral:)](playgroundbluetooth/playgroundbluetoothconnectionview/3029513-setbatterylevel.md)
- [setFirmwareStatus(_:forPeripheral:)](playgroundbluetooth/playgroundbluetoothconnectionview/3029514-setfirmwarestatus.md)
- [setIcon(_:forPeripheral:)](playgroundbluetooth/playgroundbluetoothconnectionview/3029515-seticon.md)
- [setIssueIcon(_:forPeripheral:)](playgroundbluetooth/playgroundbluetoothconnectionview/3029516-setissueicon.md)
- [setName(_:forPeripheral:)](playgroundbluetooth/playgroundbluetoothconnectionview/3029518-setname.md)

## Relationships

### Inherits From

- [UIView](uikit/uiview.md)

## See Also

### Peripheral Display

- [PlaygroundBluetoothConnectionViewDelegate](playgroundbluetooth/playgroundbluetoothconnectionviewdelegate.md)
- [PlaygroundBluetoothConnectionViewDataSource](playgroundbluetooth/playgroundbluetoothconnectionviewdatasource.md)
