Class FragmentComponentManager

  • All Implemented Interfaces:
    dagger.hilt.internal.GeneratedComponentManager<java.lang.Object>

    public class FragmentComponentManager
    extends java.lang.Object
    implements dagger.hilt.internal.GeneratedComponentManager<java.lang.Object>
    Do not use except in Hilt generated code!

    A manager for the creation of components that live in the Fragment.

    Note: This class is not typed since its type in generated code is always or . This is mainly due to the fact that we don't know the components at the time of generation, and because even the injector interface type is not a valid type if we have a hilt base class.
      • Constructor Summary

        Constructors 
        Constructor Description
        FragmentComponentManager​(androidx.fragment.app.Fragment fragment)  
      • Method Summary

        All Methods Static Methods Instance Methods Concrete Methods 
        Modifier and Type Method Description
        static android.content.ContextWrapper createContextWrapper​(android.content.Context base, androidx.fragment.app.Fragment fragment)  
        static android.content.ContextWrapper createContextWrapper​(android.view.LayoutInflater baseInflater, androidx.fragment.app.Fragment fragment)  
        static android.content.Context findActivity​(android.content.Context context)  
        java.lang.Object generatedComponent()  
        static void initializeArguments​(androidx.fragment.app.Fragment fragment)
        Returns the fragments bundle, creating a new one if none exists.
        protected void validate​(androidx.fragment.app.Fragment fragment)
        Called immediately before component creation to allow validation on the Fragment.
        • Methods inherited from class java.lang.Object

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

        • FragmentComponentManager

          public FragmentComponentManager​(androidx.fragment.app.Fragment fragment)
      • Method Detail

        • generatedComponent

          public java.lang.Object generatedComponent()
          Specified by:
          generatedComponent in interface dagger.hilt.internal.GeneratedComponentManager<java.lang.Object>
        • initializeArguments

          public static final void initializeArguments​(androidx.fragment.app.Fragment fragment)
          Returns the fragments bundle, creating a new one if none exists.
        • findActivity

          public static final android.content.Context findActivity​(android.content.Context context)
        • createContextWrapper

          public static android.content.ContextWrapper createContextWrapper​(android.content.Context base,
                                                                            androidx.fragment.app.Fragment fragment)
        • createContextWrapper

          public static android.content.ContextWrapper createContextWrapper​(android.view.LayoutInflater baseInflater,
                                                                            androidx.fragment.app.Fragment fragment)
        • validate

          protected void validate​(androidx.fragment.app.Fragment fragment)
          Called immediately before component creation to allow validation on the Fragment.