com.iristick.smartglass.core
Class PocketUnit.BatteryCallback¶
- java.lang.Object
-
- com.iristick.smartglass.core.PocketUnit.BatteryCallback
- Enclosing class:
- PocketUnit
public abstract static class PocketUnit.BatteryCallback extends Object
Callback interface for battery events.
- Since:
- 1.1
Constructor Summary¶
Constructor and Description |
---|
BatteryCallback() |
Method Summary¶
Modifier and Type | Method and Description |
---|---|
void |
onLevelChanged(float newLevel)
Called when the battery level has changed.
|
Methods inherited from class java.lang.Object¶
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail¶
BatteryCallback¶
public BatteryCallback()
Method Detail¶
onLevelChanged¶
public void onLevelChanged(float newLevel)
Called when the battery level has changed.
- Parameters:
newLevel
- The new battery level.- Since:
- 1.1
- See Also:
PocketUnit.getBatteryLevel()