BatteryState
Inherits: Enum
Battery state.
Properties
-
CHARGING–The battery is currently charging.
-
CONNECTED_NOT_CHARGING–The battery is connected to a power source but not charging.
-
DISCHARGING–The battery is discharging.
-
FULL–The battery is fully charged.
-
UNKNOWN–The battery state is unknown.
Properties#
CHARGING = 'charging'
class-attribute
instance-attribute
#
The battery is currently charging.
CONNECTED_NOT_CHARGING = 'connectedNotCharging'
class-attribute
instance-attribute
#
The battery is connected to a power source but not charging.
DISCHARGING = 'discharging'
class-attribute
instance-attribute
#
The battery is discharging.
FULL = 'full'
class-attribute
instance-attribute
#
The battery is fully charged.
UNKNOWN = 'unknown'
class-attribute
instance-attribute
#
The battery state is unknown.