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 or Fragment).

Commonly implemented by Subcomponent-annotated types whose Subcomponent.Factory extends AndroidInjector.Factory.

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Deprecated.
    Prefer AndroidInjector.Factory now that components can have factories instead of builders
    static interface 
    Creates AndroidInjectors for a concrete subtype of a core Android type.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    inject(T instance)
    Injects the members of instance.
  • Method Details

    • inject

      void inject(T instance)
      Injects the members of instance.