Package dagger.android
Interface AndroidInjector<T>
-
- Type Parameters:
T
- a concrete subtype of a core Android type
- All Known Implementing Classes:
DispatchingAndroidInjector
@Beta public interface AndroidInjector<T>
Performs members-injection for a concrete subtype of a core Android type (e.g.,Activity
orFragment
).Commonly implemented by
Subcomponent
-annotated types whoseSubcomponent.Factory
extendsAndroidInjector.Factory
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AndroidInjector.Builder<T>
Deprecated.PreferAndroidInjector.Factory
now that components can havefactories
instead of buildersstatic interface
AndroidInjector.Factory<T>
CreatesAndroidInjector
s for a concrete subtype of a core Android type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
inject(T instance)
Injects the members ofinstance
.
-
-
-
Method Detail
-
inject
void inject(T instance)
Injects the members ofinstance
.
-
-