BatteryStatus

data class BatteryStatus(val percent: Int?, val voltageVolts: Float?, val pluggedIn: Boolean)(source)

Curated battery health and state information.

Constructors

Link copied to clipboard
constructor(percent: Int?, voltageVolts: Float?, pluggedIn: Boolean)

Properties

Link copied to clipboard
val percent: Int?

charge level (0..100).

Link copied to clipboard

true if the device is currently drawing external power.

Link copied to clipboard

raw battery voltage, if reported.