public static interface Battery.OnStatusListener
| Modifier and Type | Method and Description |
|---|---|
void |
onStatusChange(android.content.Context context,
Battery battery)
Invoked whenever the status change of the battery occurs.
|
void onStatusChange(android.content.Context context,
Battery battery)
Note, that there need to be registered BatteryStatusReceiver via
Battery.registerBatteryReceiver(Context, int) with Battery.RECEIVER_BATTERY_STATUS to
receive this callback.
context - Current application context.battery - Battery with the actual data.