BatteryStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the charging status of a device battery.
public enum BatteryStatus
type BatteryStatus =
- Inheritance
-
BatteryStatus
Fields
| Name | Value | Description |
|---|---|---|
| Unknown | 1 | Battery status is unknown. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Charging | 2 | Battery is charging. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Discharging | 3 | Battery is discharging. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| NotCharging | 4 | Battery is connected to power but not charging. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Full | 5 | Battery is full. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
These values represent the status reported by a battery-state instance. Unknown status is distinct from a full, charging, discharging, or connected but not charging battery.