Package dagger.android
@CheckReturnValue
package dagger.android
APIs to assist with performing injection on Android.
-
ClassDescriptionInjects core Android types.
MapKeyannotation to keyAndroidInjector.Factorybindings.Contains bindings to ensure the usability ofdagger.androidframework classes.Performs members-injection for a concrete subtype of a core Android type (e.g.,ActivityorFragment).Deprecated.CreatesAndroidInjectors for a concrete subtype of a core Android type.Generates anAndroidInjectorfor the return type of this method.AnActivitythat injects its members inDaggerActivity.onCreate(Bundle)and can be used to injectFragments attached to it.AnApplicationthat injects its members and can be used to inject objects that the Android framework instantiates, such as Activitys, Fragments, or Services.ABroadcastReceiverthat injects its members in every call toDaggerBroadcastReceiver.onReceive(Context, Intent).AContentProviderthat injects its members inDaggerContentProvider.onCreate().Deprecated.Framework fragments are deprecated in Android P; preferdagger.android.support.DaggerDialogFragmentto use a support-library-friendlydagger.androiddialog fragment implementation.Deprecated.Framework fragments are deprecated in Android P; preferdagger.android.support.DaggerFragmentto use a support-library-friendlydagger.androidfragment implementation.AnIntentServicethat injects its members inDaggerIntentService.onCreate().AServicethat injects its members inDaggerService.onCreate().Performs members-injection on instances of core Android types (e.g.Exception thrown if an incorrect binding is made for aAndroidInjector.Factory.Provides anAndroidInjector.
AndroidInjector.Factorynow that components can havefactoriesinstead of builders