public abstract class BatteryManagerInternal extends Object
Constructor and Description |
---|
BatteryManagerInternal() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getBatteryLevel()
Returns battery level as a percentage.
|
abstract boolean |
getBatteryLevelLow()
Returns whether we currently consider the battery level to be low.
|
abstract int |
getInvalidCharger()
Returns a non-zero value if an unsupported charger is attached.
|
abstract int |
getPlugType()
Returns the current plug type.
|
abstract boolean |
isPowered(int plugTypeSet)
Returns true if the device is plugged into any of the specified plug types.
|
public abstract boolean isPowered(int plugTypeSet)
public abstract int getPlugType()
public abstract int getBatteryLevel()
public abstract boolean getBatteryLevelLow()
public abstract int getInvalidCharger()