-
- All Implemented Interfaces:
-
net.ballmerlabs.scatterbrainsdk.ScatterbrainBroadcastReceiver
@Singleton() public final class ScatterbrainBroadcastReceiverImpl extends BroadcastReceiver implements ScatterbrainBroadcastReceiver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classScatterbrainBroadcastReceiverImpl.Companion
-
Field Summary
Fields Modifier and Type Field Description private Contextcontextprivate CoroutineScopecoroutineScope
-
Constructor Summary
Constructors Constructor Description ScatterbrainBroadcastReceiverImpl()
-
Method Summary
Modifier and Type Method Description final ContextgetContext()final UnitsetContext(@Inject() Context context)final CoroutineScopegetCoroutineScope()final UnitsetCoroutineScope(@Named(value = defaultScope) @Inject() CoroutineScope coroutineScope)UnitonReceive(Context ctx, Intent intent)Unitregister()Unitunregister()UnitaddOnReceiveCallback(SuspendFunction1<HandshakeResult, Unit> r)UnitremoveOnReceiveCallback(SuspendFunction1<HandshakeResult, Unit> r)UnitaddOnResultCallback(Integer handle, AsyncCallback r)UnitremoveOnResultCallback(Integer handle)UnitwipeAsyncCallbacks()UnitwipeResultCallbacks()-
Methods inherited from class net.ballmerlabs.scatterbrainsdk.internal.ScatterbrainBroadcastReceiverImpl
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, 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
-
getContext
final Context getContext()
-
setContext
final Unit setContext(@Inject() Context context)
-
getCoroutineScope
final CoroutineScope getCoroutineScope()
-
setCoroutineScope
final Unit setCoroutineScope(@Named(value = defaultScope) @Inject() CoroutineScope coroutineScope)
-
unregister
Unit unregister()
-
addOnReceiveCallback
Unit addOnReceiveCallback(SuspendFunction1<HandshakeResult, Unit> r)
-
removeOnReceiveCallback
Unit removeOnReceiveCallback(SuspendFunction1<HandshakeResult, Unit> r)
-
addOnResultCallback
Unit addOnResultCallback(Integer handle, AsyncCallback r)
-
removeOnResultCallback
Unit removeOnResultCallback(Integer handle)
-
wipeAsyncCallbacks
Unit wipeAsyncCallbacks()
-
wipeResultCallbacks
Unit wipeResultCallbacks()
-
-
-
-