Android Guides | Samples

Android.App.FragmentTransaction.AddToBackStack Method

Add this transaction to the back stack.

Syntax

[Android.Runtime.Register("addToBackStack", "(Ljava/lang/String;)Landroid/app/FragmentTransaction;", "GetAddToBackStack_Ljava_lang_String_Handler")]
public abstract FragmentTransaction AddToBackStack (String name)

Parameters

name
An optional name for this back stack state, or null.

Remarks

Add this transaction to the back stack. This means that the transaction will be remembered after it is committed, and will reverse its operation when later popped off the stack.

[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