<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCDeviceBattery",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCDeviceBattery"
  },
  "title" : "GCDeviceBattery"
}
-->

# GCDeviceBattery

The charge level and state of a device’s battery.

```
class GCDeviceBattery
```

## Overview

Use this class to display the state of a device’s battery to a player.

## Topics

### Getting the battery level and state

[`batteryLevel`](/documentation/GameController/GCDeviceBattery/batteryLevel)

The charge level of a device’s battery.

[`batteryState`](/documentation/GameController/GCDeviceBattery/batteryState)

The state of a device’s battery.

[`GCDeviceBattery.State`](/documentation/GameController/GCDeviceBattery/State)

A state that indicates whether a device’s battery has power and is charging.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)