Android Guides | Samples

Android.App.FragmentManager.PopBackStack Method

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

Syntax

[Android.Runtime.Register("popBackStack", "(Ljava/lang/String;I)V", "GetPopBackStack_Ljava_lang_String_IHandler")]
public abstract Void PopBackStack (String name, [Android.Runtime.GeneratedEnum] PopBackStackFlags flags)

Parameters

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

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.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11