public class BatteryStatus
extends java.lang.Object
| Constructor and Description |
|---|
BatteryStatus()
Constructs a new instance with the default values.
|
BatteryStatus(int level,
int state)
Constructs a new instance with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBatteryLevel() |
java.lang.String |
getBatteryState() |
void |
setBatteryLevel(int level)
Sets the level of battery.
|
void |
setBatteryState(int state)
Sets the state of battery.
|
public BatteryStatus()
public BatteryStatus(int level,
int state)
level - The level of the battery.state - The state of battery.public void setBatteryState(int state)
state - The state of battery.public java.lang.String getBatteryState()
public void setBatteryLevel(int level)
level - The level of the battery.public int getBatteryLevel()