Dela via


FragmentManager.PopBackStack Method

Definition

Overloads

PopBackStack()

Pop the top state off the back stack.

PopBackStack(Int32, PopBackStackFlags)

Pop all back stack states up to the one with the given identifier.

PopBackStack(String, PopBackStackFlags)

Pop the last fragment transition from the manager's fragment back stack.

PopBackStack()

Pop the top state off the back stack.

[Android.Runtime.Register("popBackStack", "()V", "GetPopBackStackHandler")]
public abstract void PopBackStack ();
[<Android.Runtime.Register("popBackStack", "()V", "GetPopBackStackHandler")>]
abstract member PopBackStack : unit -> unit
Attributes

Remarks

Pop the top state off the back stack. This function is asynchronous -- it enqueues the request to pop, but the action will not be performed until the application returns to its event loop.

Java documentation for android.app.FragmentManager.popBackStack().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PopBackStack(Int32, PopBackStackFlags)

Pop all back stack states up to the one with the given identifier.

[Android.Runtime.Register("popBackStack", "(II)V", "GetPopBackStack_IIHandler")]
public abstract void PopBackStack (int id, Android.App.PopBackStackFlags flags);
[<Android.Runtime.Register("popBackStack", "(II)V", "GetPopBackStack_IIHandler")>]
abstract member PopBackStack : int * Android.App.PopBackStackFlags -> unit

Parameters

id
Int32

Identifier of the stated to be popped. If no identifier exists, false is returned. The identifier is the number returned by FragmentTransaction#commit() FragmentTransaction.commit(). The #POP_BACK_STACK_INCLUSIVE flag can be used to control whether the named state itself is popped.

flags
PopBackStackFlags

Either 0 or #POP_BACK_STACK_INCLUSIVE.

Attributes

Remarks

Pop all back stack states up to the one with the given identifier. This function is asynchronous -- it enqueues the request to pop, but the action will not be performed until the application returns to its event loop.

Java documentation for android.app.FragmentManager.popBackStack(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PopBackStack(String, PopBackStackFlags)

Pop the last fragment transition from the manager's fragment back stack.

[Android.Runtime.Register("popBackStack", "(Ljava/lang/String;I)V", "GetPopBackStack_Ljava_lang_String_IHandler")]
public abstract void PopBackStack (string? name, Android.App.PopBackStackFlags flags);
[<Android.Runtime.Register("popBackStack", "(Ljava/lang/String;I)V", "GetPopBackStack_Ljava_lang_String_IHandler")>]
abstract member PopBackStack : string * Android.App.PopBackStackFlags -> unit

Parameters

name
String

If non-null, this is the name of a previous back state to look for; if found, all states up to that state will be popped. The #POP_BACK_STACK_INCLUSIVE flag can be used to control whether the named state itself is popped. If null, only the top state is popped.

flags
PopBackStackFlags

Either 0 or #POP_BACK_STACK_INCLUSIVE.

Attributes

Remarks

Pop the last fragment transition from the manager's fragment back stack. If there is nothing to pop, false is returned. This function is asynchronous -- it enqueues the request to pop, but the action will not be performed until the application returns to its event loop.

Java documentation for android.app.FragmentManager.popBackStack(java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to