---
title: "init(name:icon:issueIcon:firmwareStatus:batteryLevel:)"
framework: Playground Bluetooth
role: symbol
role_heading: Initializer
platforms: [xcode 10.2+, swift playgrounds 2.0+]
path: playgroundbluetooth/playgroundbluetoothconnectionview/item/3029497-init
---

# init(name:icon:issueIcon:firmwareStatus:batteryLevel:)

Creates a structure that holds information about a peripheral displayed in a connection view.

## Declaration

```swift
init(name: String, icon: UIImage, issueIcon: UIImage, firmwareStatus: PlaygroundBluetoothConnectionView.Item.FirmwareStatus? = nil, batteryLevel: Double? = nil)
```

## Parameters

- `name`: The name of a peripheral as it should appear in a connection view.
- `icon`: An image that represents a peripheral.
- `issueIcon`: An icon indicating that a peripheral may not function correctly.
- `firmwareStatus`: A value that indicates whether a peripheral needs a firmware update.
- `batteryLevel`: A value between 0 and 1.0 indicating a peripheral’s percent battery charge.

## See Also

### Displaying Peripheral Information

- [name](playgroundbluetooth/playgroundbluetoothconnectionview/item/3029499-name.md)
