@Beta public abstract class DaggerBroadcastReceiver extends android.content.BroadcastReceiverA
BroadcastReceiverthat injects its members in every call to
This class should only be used for
BroadcastReceivers that are declared in an
AndroidManifest.xml. If, instead, the
BroadcastReceiveris created in code, prefer constructor injection.
Note: this class is not thread safe and should not be used with multiple
Handlers in calls to
Context.registerReceiver(BroadcastReceiver, android.content.IntentFilter, String, android.os.Handler). Injection is performed on each invocation to
onReceive(Context, Intent)which could result in inconsistent views of injected dependencies across threads.
Subclasses should override
onReceive(Context, Intent)and call
super.onReceive(context, intent)immediately to ensure injection is performed immediately.
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
onReceive(android.content.Context context, android.content.Intent intent)
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras