Class BatteryInfo
-
- All Implemented Interfaces:
public final class BatteryInfo
Represent battery info extracted from battery and charging change broadcast
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interface
BatteryInfo.ChargingState
-
Field Summary
Fields Modifier and Type Field Description private final Integer
chargingState
private final Float
batteryLevel
-
Constructor Summary
Constructors Constructor Description BatteryInfo(Integer chargingState, Float batteryLevel)
-
Method Summary
Modifier and Type Method Description final Integer
getChargingState()
final Float
getBatteryLevel()
-
-
Method Detail
-
getChargingState
final Integer getChargingState()
- Returns:
charging state.
-
getBatteryLevel
final Float getBatteryLevel()
- Returns:
battery level between 0-1
-
-
-
-