Język

BatteryStatus Enum

Definition

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 android.hardware.BatteryState.STATUS_UNKNOWN.

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 android.hardware.BatteryState.STATUS_CHARGING.

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 android.hardware.BatteryState.STATUS_DISCHARGING.

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 android.hardware.BatteryState.STATUS_NOT_CHARGING.

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 android.hardware.BatteryState.STATUS_FULL.

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.

Source.

Applies to