BatteryStatus

constructor(level: Int, isCharging: Boolean, chargeType: ChargeType, health: BatteryHealth, temperature: Int, voltage: Int)(source)

Parameters

level

The battery level percentage 0..100.

isCharging

Whether the device is currently plugged into a power source.

chargeType

The specific source of power (AC, USB, Wireless) or ChargeType.None.

health

The physical health state of the battery (e.g., Good, Overheat).

temperature

The battery temperature in tenths of a degree Celsius (e.g., 250 = 25.0°C).

voltage

The current battery voltage in millivolts.