Class EarlyEntryPoints


  • @Beta
    public final class EarlyEntryPoints
    extends java.lang.Object
    Static utility methods for accessing entry points annotated with EarlyEntryPoint.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T get​(android.content.Context applicationContext, java.lang.Class<T> entryPoint)
      Returns the early entry point interface given a component manager holder.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        @Nonnull
        public static <T> T get​(android.content.Context applicationContext,
                                java.lang.Class<T> entryPoint)
        Returns the early entry point interface given a component manager holder. Note that this performs an unsafe cast and so callers should be sure that the given component/component manager matches the early entry point interface that is given.
        Parameters:
        applicationContext - The application context.
        entryPoint - The interface marked with EarlyEntryPoint. The InstallIn annotation on this entry point should match the component argument above.