public class BatteryPluggedStateReceiver extends Battery.BatteryBroadcastReceiver
Battery.BatteryBroadcastReceiver used by Battery implementation to receive actual
information about the current battery plugged state.
This broadcast receiver receives only data about:
Battery.BatteryTechnologyBattery implementation, if there is not BatteryStatusReceiver
registered.| Constructor and Description |
|---|
BatteryPluggedStateReceiver() |
| Modifier and Type | Method and Description |
|---|---|
android.content.IntentFilter |
newIntentFilter()
Returns the intent filter for
Intent.ACTION_POWER_CONNECTED and Intent.ACTION_POWER_DISCONNECTED
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_POWER_CONNECTED and Intent.ACTION_POWER_DISCONNECTED
actions which should be used when registering this instance of battery receiver.newIntentFilter in class Battery.BatteryBroadcastReceiverIntentFilter.public void onReceive(android.content.Context context,
android.content.Intent intent)
onReceive in class android.content.BroadcastReceiver