@CheckReturnValue
Package dagger.android
APIs to assist with performing injection on Android.
-
Interface Summary Interface Description AndroidInjector<T> Performs members-injection for a concrete subtype of a core Android type (e.g.,Activity
orFragment
).AndroidInjector.Factory<T> CreatesAndroidInjector
s for a concrete subtype of a core Android type.HasAndroidInjector Provides anAndroidInjector
. -
Class Summary Class Description AndroidInjection Injects core Android types.AndroidInjectionModule Contains bindings to ensure the usability ofdagger.android
framework classes.AndroidInjector.Builder<T> Deprecated. PreferAndroidInjector.Factory
now that components can havefactories
instead of buildersDaggerActivity AnActivity
that injects its members inDaggerActivity.onCreate(Bundle)
and can be used to injectFragment
s attached to it.DaggerApplication AnApplication
that injects its members and can be used to inject objects that the Android framework instantiates, such as Activitys, Fragments, or Services.DaggerBroadcastReceiver ABroadcastReceiver
that injects its members in every call toDaggerBroadcastReceiver.onReceive(Context, Intent)
.DaggerContentProvider AContentProvider
that injects its members inDaggerContentProvider.onCreate()
.DaggerDialogFragment Deprecated. Framework fragments are deprecated in Android P; preferdagger.android.support.DaggerDialogFragment
to use a support-library-friendlydagger.android
dialog fragment implementation.DaggerFragment Deprecated. Framework fragments are deprecated in Android P; preferdagger.android.support.DaggerFragment
to use a support-library-friendlydagger.android
fragment implementation.DaggerIntentService AnIntentService
that injects its members inDaggerIntentService.onCreate()
.DaggerService AService
that injects its members inDaggerService.onCreate()
.DispatchingAndroidInjector<T> Performs members-injection on instances of core Android types (e.g. -
Exception Summary Exception Description DispatchingAndroidInjector.InvalidInjectorBindingException Exception thrown if an incorrect binding is made for aAndroidInjector.Factory
. -
Annotation Types Summary Annotation Type Description AndroidInjectionKey MapKey
annotation to keyAndroidInjector.Factory
bindings.ContributesAndroidInjector Generates anAndroidInjector
for the return type of this method.