Battery.State

The Power States

Values

ValueMeaning
UnknownSDL_POWERSTATE_UNKNOWN

Cannot determine power status

OnBatterySDL_POWERSTATE_ON_BATTERY

Not plugged in, running on the battery

NoBatterySDL_POWERSTATE_NO_BATTERY

plugged in, no battery available

ChargingSDL_POWERSTATE_CHARGING

plugged in, charging battery

ChargedSDL_POWERSTATE_CHARGED

plugged in, battery charged

Meta