|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object android.content.BroadcastReceiver com.github.ignition.location.receivers.IgnitedPowerStateChangedReceiver
public class IgnitedPowerStateChangedReceiver
The manifest Receiver is used to detect changes in battery state. When the system broadcasts a "Battery Low" warning we turn off the passive location updates to conserve battery when the app is in the background. When the system broadcasts "Battery OK" to indicate the battery has returned to an okay state, the passive location updates are resumed.
Constructor Summary | |
---|---|
IgnitedPowerStateChangedReceiver()
|
Method Summary | |
---|---|
void |
onReceive(android.content.Context context,
android.content.Intent intent)
|
Methods inherited from class android.content.BroadcastReceiver |
---|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IgnitedPowerStateChangedReceiver()
Method Detail |
---|
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |