Class FragmentController<F extends android.app.Fragment>

  • Type Parameters:
    F - a class of the fragment which is under control by this class.

    @Deprecated
    public class FragmentController<F extends android.app.Fragment>
    extends ComponentController<FragmentController<F>,​F>
    Deprecated.
    Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
    FragmentController provides low-level APIs to control fragment's lifecycle.
    • Method Detail

      • of

        public static <F extends android.app.Fragment> FragmentController<F> of​(F fragment)
        Deprecated.
      • of

        public static <F extends android.app.Fragment> FragmentController<F> of​(F fragment,
                                                                                java.lang.Class<? extends android.app.Activity> activityClass)
        Deprecated.
      • of

        public static <F extends android.app.Fragment> FragmentController<F> of​(F fragment,
                                                                                android.content.Intent intent)
        Deprecated.
      • of

        public static <F extends android.app.Fragment> FragmentController<F> of​(F fragment,
                                                                                android.os.Bundle arguments)
        Deprecated.
      • of

        public static <F extends android.app.Fragment> FragmentController<F> of​(F fragment,
                                                                                android.content.Intent intent,
                                                                                android.os.Bundle arguments)
        Deprecated.
      • of

        public static <F extends android.app.Fragment> FragmentController<F> of​(F fragment,
                                                                                java.lang.Class<? extends android.app.Activity> activityClass,
                                                                                android.content.Intent intent)
        Deprecated.
      • of

        public static <F extends android.app.Fragment> FragmentController<F> of​(F fragment,
                                                                                java.lang.Class<? extends android.app.Activity> activityClass,
                                                                                android.os.Bundle arguments)
        Deprecated.
      • of

        public static <F extends android.app.Fragment> FragmentController<F> of​(F fragment,
                                                                                java.lang.Class<? extends android.app.Activity> activityClass,
                                                                                android.content.Intent intent,
                                                                                android.os.Bundle arguments)
        Deprecated.
      • create

        public FragmentController<F> create​(int contentViewId,
                                            android.os.Bundle bundle)
        Deprecated.
        Creates the activity with Bundle and adds the fragment to the view with ID contentViewId.
      • create

        public FragmentController<F> create​(android.os.Bundle bundle)
        Deprecated.
        Creates the activity with Bundle and adds the fragment to it. Note that the fragment will be added to the view with ID 1.
      • saveInstanceState

        public FragmentController<F> saveInstanceState​(android.os.Bundle outState)
        Deprecated.
      • recreate

        public FragmentController<F> recreate​(F recreatedFragment,
                                              int contentViewId)
        Deprecated.