-
public final class BootCompletedReceiver extends BroadcastReceiver
BroadcastReceiver that starts the HolochainService when the device has finished booting.
-
-
Constructor Summary
Constructors Constructor Description BootCompletedReceiver()
-
Method Summary
Modifier and Type Method Description UnitonReceive(Context context, Intent intent)Called when the device has completed booting. -
Methods inherited from class org.holochain.androidserviceruntime.service.BootCompletedReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, getSentFromPackage, getSentFromUid, goAsync, 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
-
-
Method Detail
-
onReceive
Unit onReceive(Context context, Intent intent)
Called when the device has completed booting.
This method checks for the ACTION_BOOT_COMPLETED intent and starts the HolochainService with the ACTION_BOOT_COMPLETED action. The service will then decide whether to start Holochain based on the user's autostart configuration.
- Parameters:
context- The Context in which the receiver is runningintent- The Intent being received
-
-
-
-