BatteryCapacityLevel 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.
Defines battery capacity level values used by the Android OS API.
public enum BatteryCapacityLevel
type BatteryCapacityLevel =
- Inheritance
-
BatteryCapacityLevel
Fields
| Name | Value | Description |
|---|---|---|
| Unsupported | -1 | Battery capacity level is unsupported. |
| Unknown | 0 | Battery capacity level is unknown. |
| Critical | 1 | Battery capacity level is critical. The Android framework has been notified to schedule a shutdown by this value. |
| Low | 2 | Battery capacity level is low. The Android framework must limit background jobs to avoid impacting charging speed. |
| Normal | 3 | Battery capacity level is normal. Battery level and charging rates are normal, battery temperature is within the normal range, and adapter power is enough to charge the battery at an acceptable rate. The Android framework can run light background tasks without affecting charging performance severely. |
| High | 4 | Battery capacity level is high. Battery level is high, battery temperature is within the normal range, and adapter power is enough to charge the battery at an acceptable rate while running background loads. The Android framework can run background tasks without affecting charging or battery performance. |
| Full | 5 | Battery capacity level is full. The battery is full, the battery temperature is within the normal range, and adapter power is enough to sustain running background loads. The Android framework can run background tasks without affecting the battery level or battery performance. |
Remarks
The BatteryManager class contains strings and constants used for values in the Intent.ACTION_BATTERY_CHANGED Intent, and provides a method for querying battery and charging properties.
Java documentation for android.os.BatteryManager.
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.