BatteryStatus

@Serializable
data class BatteryStatus(val levelPercent: Int, val status: String, val pluggedType: String?, val health: String, val isBatterySaverOn: Boolean, val estimatedMinutesRemaining: Int? = null)

Battery status snapshot for fleet operations.

Privacy (GDPR): Contains no PII. Only aggregate device status. Power Efficiency: Collected via sticky broadcast, no wake lock.

Constructors

Link copied to clipboard
constructor(levelPercent: Int, status: String, pluggedType: String?, health: String, isBatterySaverOn: Boolean, estimatedMinutesRemaining: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Minutes until empty (null if charging)

Link copied to clipboard

Battery health: GOOD, OVERHEAT, DEAD, UNKNOWN

Link copied to clipboard

True if battery saver mode is active

Link copied to clipboard

Check if battery is in a critical state.

Link copied to clipboard

Check if battery is in a low state.

Link copied to clipboard

Battery level 0-100

Link copied to clipboard

AC, USB, WIRELESS, NONE

Link copied to clipboard

CHARGING, DISCHARGING, FULL, NOT_CHARGING, UNKNOWN