Enumeration

UIDeviceBatteryState

The battery power state of the device.

Declaration

typedef enum UIDeviceBatteryState : NSInteger {
    ...
} UIDeviceBatteryState;

Overview

These constants are used by the batteryState property.

Topics

Constants

UIDeviceBatteryStateUnknown

The battery state for the device cannot be determined.

UIDeviceBatteryStateUnplugged

The device is not plugged into power; the battery is discharging.

UIDeviceBatteryStateCharging

The device is plugged into power and the battery is less than 100% charged.

UIDeviceBatteryStateFull

The device is plugged into power and the battery is 100% charged.

See Also

Getting the Device Battery State

batteryLevel

The battery charge level for the device.

batteryMonitoringEnabled

A Boolean value indicating whether battery monitoring is enabled (YES) or not (NO).

batteryState

The battery state for the device.