F
- a class of the fragment which is under control by this class.@Deprecated public class FragmentController<F extends Fragment> extends ComponentController<FragmentController<F>,F>
FragmentController provides low-level APIs to control fragment’s lifecycle.
attached, component, intent, myself, shadowMainLooper
Modifier and Type | Method and Description |
---|---|
FragmentController<F> |
create()
Deprecated.
|
FragmentController<F> |
create(Bundle bundle)
Deprecated.
Creates the activity with
Bundle and adds the fragment to it. |
FragmentController<F> |
create(int contentViewId,
Bundle bundle)
Deprecated.
Creates the activity with
Bundle and adds the fragment to the view with ID contentViewId . |
FragmentController<F> |
destroy()
Deprecated.
|
static <F extends Fragment> |
of(F fragment)
Deprecated.
|
static <F extends Fragment> |
of(F fragment,
Bundle arguments)
Deprecated.
|
static <F extends Fragment> |
of(F fragment,
Class<? extends Activity> activityClass)
Deprecated.
|
static <F extends Fragment> |
of(F fragment,
Class<? extends Activity> activityClass,
Bundle arguments)
Deprecated.
|
static <F extends Fragment> |
of(F fragment,
Class<? extends Activity> activityClass,
Intent intent)
Deprecated.
|
static <F extends Fragment> |
of(F fragment,
Class<? extends Activity> activityClass,
Intent intent,
Bundle arguments)
Deprecated.
|
static <F extends Fragment> |
of(F fragment,
Intent intent)
Deprecated.
|
static <F extends Fragment> |
of(F fragment,
Intent intent,
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(Bundle outState)
Deprecated.
|
FragmentController<F> |
start()
Deprecated.
|
FragmentController<F> |
stop()
Deprecated.
|
FragmentController<F> |
visible()
Deprecated.
|
get, getIntent, invokeWhilePaused
public static <F extends Fragment> FragmentController<F> of(F fragment)
public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> activityClass)
public static <F extends Fragment> FragmentController<F> of(F fragment, Intent intent)
public static <F extends Fragment> FragmentController<F> of(F fragment, Bundle arguments)
public static <F extends Fragment> FragmentController<F> of(F fragment, Intent intent, Bundle arguments)
public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> activityClass, Intent intent)
public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> activityClass, Bundle arguments)
public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> activityClass, Intent intent, Bundle arguments)
public FragmentController<F> create(int contentViewId, Bundle bundle)
Creates the activity with Bundle
and adds the fragment to the view with ID contentViewId
.
public FragmentController<F> create(Bundle bundle)
Creates the activity with Bundle
and adds the fragment to it. Note that the fragment will be added to the view with ID 1.
public FragmentController<F> create()
create
in class ComponentController<FragmentController<F extends Fragment>,F extends Fragment>
public FragmentController<F> destroy()
destroy
in class ComponentController<FragmentController<F extends Fragment>,F extends Fragment>
public FragmentController<F> start()
public FragmentController<F> resume()
public FragmentController<F> pause()
public FragmentController<F> visible()
public FragmentController<F> stop()
public FragmentController<F> saveInstanceState(Bundle outState)
public FragmentController<F> recreate()
public FragmentController<F> recreate(F recreatedFragment, int contentViewId)