Language

BatteryProperty Enum

Definition

Enumerates values returned by several types.

public enum BatteryProperty
type BatteryProperty = 
Inheritance
BatteryProperty

Fields

Name Value Description
ChargeCounter 1

Battery capacity in microampere-hours, as an integer.

CurrentNow 2

Instantaneous battery current in microamperes, as an integer. Positive values indicate net current entering the battery from a charge source, negative values indicate net current discharging from the battery.

CurrentAverage 3

Average battery current in microamperes, as an integer. Positive values indicate net current entering the battery from a charge source, negative values indicate net current discharging from the battery. The time period over which the average is computed may depend on the fuel gauge hardware and its configuration.

Capacity 4

Remaining battery capacity as an integer percentage of total capacity (with no fractional part).

EnergyCounter 5

Battery remaining energy in nanowatt-hours, as a long integer.

Status 6

Battery charge status, from a BATTERY_STATUS_* value.

Remarks

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.

Java documentation for android.os.BatteryManager.

Applies to