Contents

batteryLevel

The charge level of a device’s battery.

Declaration

var batteryLevel: Float { get }

Discussion

The battery level is a percentage ranging from 0.0 (fully discharged) to 1.0 (100% charged). The default value for this property is 0.0.

See Also

Getting the battery level and state