public class BatteryHealthReceiver extends Battery.BatteryBroadcastReceiver
Battery.BatteryBroadcastReceiver used by Battery implementation to receive actual
information about the current battery health state.| Constructor and Description |
|---|
BatteryHealthReceiver() |
| Modifier and Type | Method and Description |
|---|---|
android.content.IntentFilter |
newIntentFilter()
Returns the intent filter for
Intent.ACTION_BATTERY_OKAY and Intent.ACTION_BATTERY_LOW
actions which should be used when registering this instance of battery receiver. |
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtraspublic final android.content.IntentFilter newIntentFilter()
Intent.ACTION_BATTERY_OKAY and Intent.ACTION_BATTERY_LOW
actions which should be used when registering this instance of battery receiver.newIntentFilter in class Battery.BatteryBroadcastReceiverpublic void onReceive(android.content.Context context,
android.content.Intent intent)
onReceive in class android.content.BroadcastReceiver