Package com.pointrlabs.core.receiver
Class StartupBroadcastReceiver
-
- All Implemented Interfaces:
public class StartupBroadcastReceiver extends PointrBroadcastReceiver<T>
This receiver gets the events of BOOT, POWER STATE CHANGES, BT STATE CHANGES and signals from the Wake up alarm then starts the GeofencingService. This is for waking up the system if it was put to sleep by the android optimization.
-
-
Constructor Summary
Constructors Constructor Description StartupBroadcastReceiver()
-
Method Summary
Modifier and Type Method Description static Intent
getWakeupIntent(Context context)
void
handleBroadcast(@NonNull() Context context, @NonNull() Intent intent)
Called only when pointr is ready to operate for received broadcast -
Methods inherited from class com.pointrlabs.core.receiver.PointrBroadcastReceiver
addListener, onReceive, removeListener
-
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, getSentFromPackage, getSentFromUid, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, onReceive, 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
-
-
Method Detail
-
getWakeupIntent
static Intent getWakeupIntent(Context context)
-
handleBroadcast
void handleBroadcast(@NonNull() Context context, @NonNull() Intent intent)
Called only when pointr is ready to operate for received broadcast
- Parameters:
context
- The Context in which the receiver is running.intent
- The Intent being received.
-
-
-
-