@Retention(value=CLASS)
@Target(value=TYPE)
public @interface EntryPoint
InstallIn
to indicate which component(s) should have this
entry point. When assembling components, Hilt will make the indicated components extend the
interface marked with this annotation.
To use the annotated interface to access Dagger objects, use EntryPoints
.
Example usage:
@EntryPoint
@InstallIn(SingletonComponent.class)
public interface FooEntryPoint {
Foo getFoo();
}
Foo foo = EntryPoints.get(component, FooEntryPoint.class).getFoo();