---
title: battery
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gccontroller/battery
---

# battery

The controller’s battery information.

## Declaration

```swift
@NSCopying var battery: GCDeviceBattery? { get }
```

## Discussion

Discussion Use this property to display the battery life or to warn the user when the controller’s battery level is low. If the controller doesn’t provide battery information, this property is nil.

## See Also

### Accessing battery, haptics, and light objects

- [haptics](gamecontroller/gccontroller/haptics.md)
- [light](gamecontroller/gccontroller/light.md)
