Android.OS.BatteryManager Members

The members of Android.OS.BatteryManager are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
BatteryHealthColdBatteryHealth (7).
const
BatteryHealthDeadBatteryHealth (4).
const
BatteryHealthGoodBatteryHealth (2).
const
BatteryHealthOverheatBatteryHealth (3).
const
BatteryHealthOverVoltageBatteryHealth (5).
const
BatteryHealthUnknownBatteryHealth (1).
const
BatteryHealthUnspecifiedFailureBatteryHealth (6).
const
BatteryPluggedAcBatteryPlugged (1). Power source is an AC charger.
const
BatteryPluggedUsbBatteryPlugged (2). Power source is a USB port.
const
BatteryPluggedWirelessBatteryPlugged (4). Power source is wireless.
const
BatteryPropertyCapacityBatteryProperty (4). Remaining battery capacity as an integer percentage of total capacity (with no fractional part).
const
BatteryPropertyChargeCounterBatteryProperty (1). Battery capacity in microampere-hours, as an integer.
const
BatteryPropertyCurrentAverageBatteryProperty (3). Average battery current in microamperes, as an integer.
const
BatteryPropertyCurrentNowBatteryProperty (2). Instantaneous battery current in microamperes, as an integer.
const
BatteryPropertyEnergyCounterBatteryProperty (5). Battery remaining energy in nanowatt-hours, as a long integer.
const
BatteryStatusChargingBatteryStatus (2).
const
BatteryStatusDischargingBatteryStatus (3).
const
BatteryStatusFullBatteryStatus (5).
const
BatteryStatusNotChargingBatteryStatus (4).
const
BatteryStatusUnknownBatteryStatus (1).
const
ExtraHealthstring. Extra for Android.Content.Intent.ActionBatteryChanged: integer containing the current health constant.
const
ExtraIconSmallstring. Extra for Android.Content.Intent.ActionBatteryChanged: integer containing the resource ID of a small status bar icon indicating the current battery state.
const
ExtraLevelstring. Extra for Android.Content.Intent.ActionBatteryChanged: integer field containing the current battery level, from 0 to BatteryManager.ExtraScale.
const
ExtraPluggedstring. Extra for Android.Content.Intent.ActionBatteryChanged: integer indicating whether the device is plugged in to a power source; 0 means it is on battery, other constants are different types of power sources.
const
ExtraPresentstring. Extra for Android.Content.Intent.ActionBatteryChanged: boolean indicating whether a battery is present.
const
ExtraScalestring. Extra for Android.Content.Intent.ActionBatteryChanged: integer containing the maximum battery level.
const
ExtraStatusstring. Extra for Android.Content.Intent.ActionBatteryChanged: integer containing the current status constant.
const
ExtraTechnologystring. Extra for Android.Content.Intent.ActionBatteryChanged: String describing the technology of the current battery.
const
ExtraTemperaturestring. Extra for Android.Content.Intent.ActionBatteryChanged: integer containing the current battery temperature.
const
ExtraVoltagestring. Extra for Android.Content.Intent.ActionBatteryChanged: integer containing the current battery voltage level.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetIntProperty(int) : int
Return the value of a battery property of integer type.
GetLongProperty(int) : long
Return the value of a battery property of long type If the platform does not provide the property queried, this value will be Long.