Java android.os BatteryManager fields, constructors, methods, implement or subclass

Example usage for Java android.os BatteryManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os BatteryManager.

The text is from its open source code.

Field

StringEXTRA_STATUS
Extra for android.content.Intent#ACTION_BATTERY_CHANGED : integer containing the current status constant.
StringEXTRA_HEALTH
Extra for android.content.Intent#ACTION_BATTERY_CHANGED : integer containing the current health constant.
StringEXTRA_PRESENT
Extra for android.content.Intent#ACTION_BATTERY_CHANGED : boolean indicating whether a battery is present.
StringEXTRA_LEVEL
Extra for android.content.Intent#ACTION_BATTERY_CHANGED : integer field containing the current battery level, from 0 to #EXTRA_SCALE .
StringEXTRA_SCALE
Extra for android.content.Intent#ACTION_BATTERY_CHANGED : integer containing the maximum battery level.
StringEXTRA_PLUGGED
Extra for android.content.Intent#ACTION_BATTERY_CHANGED : 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.
StringEXTRA_VOLTAGE
Extra for android.content.Intent#ACTION_BATTERY_CHANGED : integer containing the current battery voltage level.
StringEXTRA_TEMPERATURE
Extra for android.content.Intent#ACTION_BATTERY_CHANGED : integer containing the current battery temperature.
StringEXTRA_TECHNOLOGY
Extra for android.content.Intent#ACTION_BATTERY_CHANGED : String describing the technology of the current battery.
intBATTERY_STATUS_UNKNOWN
intBATTERY_STATUS_CHARGING
intBATTERY_STATUS_DISCHARGING
intBATTERY_STATUS_NOT_CHARGING
intBATTERY_STATUS_FULL
intBATTERY_HEALTH_UNKNOWN
intBATTERY_HEALTH_GOOD
intBATTERY_HEALTH_OVERHEAT
intBATTERY_HEALTH_DEAD
intBATTERY_HEALTH_OVER_VOLTAGE
intBATTERY_HEALTH_UNSPECIFIED_FAILURE
intBATTERY_HEALTH_COLD
intBATTERY_PLUGGED_AC
Power source is an AC charger.
intBATTERY_PLUGGED_USB
Power source is a USB port.
intBATTERY_PLUGGED_WIRELESS
Power source is wireless.