BatteryStatus
data class BatteryStatus(val level: Int, val isCharging: Boolean, val chargeType: ChargeType, val health: BatteryHealth, val temperature: Int, val voltage: Int)(source)
Current battery status information.
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.
Constructors
Link copied to clipboard
constructor(level: Int, isCharging: Boolean, chargeType: ChargeType, health: BatteryHealth, temperature: Int, voltage: Int)