battery
The controller’s battery information.
Declaration
@NSCopying var battery: GCDeviceBattery? { get }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.