FragmentManager.PopBackStack FragmentManager.PopBackStack Method

Definition

Overloads

PopBackStack() PopBackStack()

Pop the top state off the back stack.

PopBackStack(Int32, PopBackStackFlags) PopBackStack(Int32, PopBackStackFlags)

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

PopBackStack(String, PopBackStackFlags) PopBackStack(String, PopBackStackFlags)

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

PopBackStack() PopBackStack()

Pop the top state off the back stack.

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

Remarks

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.

PopBackStack(Int32, PopBackStackFlags) 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);
abstract member PopBackStack : int * Android.App.PopBackStackFlags -> unit

Parameters

id
Int32 Int32

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

Remarks

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.

PopBackStack(String, PopBackStackFlags) 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);
abstract member PopBackStack : string * Android.App.PopBackStackFlags -> unit

Parameters

name
String 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 PopBackStackInclusive flag can be used to control whether the named state itself is popped. If null, only the top state is popped.

Remarks

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