Class FragmentController<F extends android.app.Fragment>
- java.lang.Object
-
- org.robolectric.android.controller.ComponentController<FragmentController<F>,F>
-
- org.robolectric.android.controller.FragmentController<F>
-
- 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.
-
-
Field Summary
-
Fields inherited from class org.robolectric.android.controller.ComponentController
attached, component, intent, myself, shadowMainLooper
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FragmentController<F>create()Deprecated.FragmentController<F>create(int contentViewId, android.os.Bundle bundle)Deprecated.Creates the activity withBundleand adds the fragment to the view with IDcontentViewId.FragmentController<F>create(android.os.Bundle bundle)Deprecated.Creates the activity withBundleand adds the fragment to it.FragmentController<F>destroy()Deprecated.static <F extends android.app.Fragment>
FragmentController<F>of(F fragment)Deprecated.static <F extends android.app.Fragment>
FragmentController<F>of(F fragment, android.content.Intent intent)Deprecated.static <F extends android.app.Fragment>
FragmentController<F>of(F fragment, android.content.Intent intent, android.os.Bundle arguments)Deprecated.static <F extends android.app.Fragment>
FragmentController<F>of(F fragment, android.os.Bundle arguments)Deprecated.static <F extends android.app.Fragment>
FragmentController<F>of(F fragment, java.lang.Class<? extends android.app.Activity> activityClass)Deprecated.static <F extends android.app.Fragment>
FragmentController<F>of(F fragment, java.lang.Class<? extends android.app.Activity> activityClass, android.content.Intent intent)Deprecated.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.static <F extends android.app.Fragment>
FragmentController<F>of(F fragment, java.lang.Class<? extends android.app.Activity> activityClass, android.os.Bundle arguments)Deprecated.FragmentController<F>pause()Deprecated.FragmentController<F>recreate()Deprecated.FragmentController<F>recreate(F recreatedFragment, int contentViewId)Deprecated.FragmentController<F>resume()Deprecated.FragmentController<F>saveInstanceState(android.os.Bundle outState)Deprecated.FragmentController<F>start()Deprecated.FragmentController<F>stop()Deprecated.FragmentController<F>visible()Deprecated.-
Methods inherited from class org.robolectric.android.controller.ComponentController
get, getIntent, invokeWhilePaused
-
-
-
-
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 withBundleand adds the fragment to the view with IDcontentViewId.
-
create
public FragmentController<F> create(android.os.Bundle bundle)
Deprecated.Creates the activity withBundleand adds the fragment to it. Note that the fragment will be added to the view with ID 1.
-
create
public FragmentController<F> create()
Deprecated.- Specified by:
createin classComponentController<FragmentController<F extends android.app.Fragment>,F extends android.app.Fragment>
-
destroy
public FragmentController<F> destroy()
Deprecated.- Specified by:
destroyin classComponentController<FragmentController<F extends android.app.Fragment>,F extends android.app.Fragment>
-
start
public FragmentController<F> start()
Deprecated.
-
resume
public FragmentController<F> resume()
Deprecated.
-
pause
public FragmentController<F> pause()
Deprecated.
-
visible
public FragmentController<F> visible()
Deprecated.
-
stop
public FragmentController<F> stop()
Deprecated.
-
saveInstanceState
public FragmentController<F> saveInstanceState(android.os.Bundle outState)
Deprecated.
-
recreate
public FragmentController<F> recreate()
Deprecated.
-
recreate
public FragmentController<F> recreate(F recreatedFragment, int contentViewId)
Deprecated.
-
-