---
title: batteryStates
framework: dockkit
role: symbol
role_heading: Instance Property
path: dockkit/dockaccessory/batterystates-swift.property
---

# batteryStates

Battery states from the accessory that indicate changes in battery charge or readiness

## Declaration

```swift
final var batteryStates: DockAccessory.BatteryStates { get throws }
```

## Return Value

Return Value Accessory events related to button presses and common camera controls.

## Discussion

Discussion note: DockKitError.notConnected if device is disconnected, or DockKitError.notSupportedByDevice if device doesn’t support updates.
