Package dagger.android
@CheckReturnValue
package dagger.android
APIs to assist with performing injection on Android.
-
ClassDescriptionInjects core Android types.
MapKey
annotation to keyAndroidInjector.Factory
bindings.Contains bindings to ensure the usability ofdagger.android
framework classes.Performs members-injection for a concrete subtype of a core Android type (e.g.,Activity
orFragment
).Deprecated.CreatesAndroidInjector
s for a concrete subtype of a core Android type.Generates anAndroidInjector
for the return type of this method.AnActivity
that injects its members inDaggerActivity.onCreate(Bundle)
and can be used to injectFragment
s attached to it.AnApplication
that injects its members and can be used to inject objects that the Android framework instantiates, such as Activitys, Fragments, or Services.ABroadcastReceiver
that injects its members in every call toDaggerBroadcastReceiver.onReceive(Context, Intent)
.AContentProvider
that injects its members inDaggerContentProvider.onCreate()
.Deprecated.Framework fragments are deprecated in Android P; preferdagger.android.support.DaggerDialogFragment
to use a support-library-friendlydagger.android
dialog fragment implementation.Deprecated.Framework fragments are deprecated in Android P; preferdagger.android.support.DaggerFragment
to use a support-library-friendlydagger.android
fragment implementation.AnIntentService
that injects its members inDaggerIntentService.onCreate()
.AService
that 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.Factory
now that components can havefactories
instead of builders