@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.,ActivityorFragment).AndroidInjector.Factory<T> CreatesAndroidInjectors 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.androidframework classes.AndroidInjector.Builder<T> Deprecated. PreferAndroidInjector.Factorynow that components can havefactoriesinstead of buildersDaggerActivity AnActivitythat injects its members inDaggerActivity.onCreate(Bundle)and can be used to injectFragments attached to it.DaggerApplication AnApplicationthat injects its members and can be used to inject objects that the Android framework instantiates, such as Activitys, Fragments, or Services.DaggerBroadcastReceiver ABroadcastReceiverthat injects its members in every call toDaggerBroadcastReceiver.onReceive(Context, Intent).DaggerContentProvider AContentProviderthat injects its members inDaggerContentProvider.onCreate().DaggerDialogFragment Deprecated. Framework fragments are deprecated in Android P; preferdagger.android.support.DaggerDialogFragmentto use a support-library-friendlydagger.androiddialog fragment implementation.DaggerFragment Deprecated. Framework fragments are deprecated in Android P; preferdagger.android.support.DaggerFragmentto use a support-library-friendlydagger.androidfragment implementation.DaggerIntentService AnIntentServicethat injects its members inDaggerIntentService.onCreate().DaggerService AServicethat 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 MapKeyannotation to keyAndroidInjector.Factorybindings.ContributesAndroidInjector Generates anAndroidInjectorfor the return type of this method.