Share via


FragmentTransaction.DisallowAddToBackStack Method

Definition

Disallow calls to #addToBackStack(String).

[Android.Runtime.Register("disallowAddToBackStack", "()Landroid/app/FragmentTransaction;", "GetDisallowAddToBackStackHandler")]
public abstract Android.App.FragmentTransaction? DisallowAddToBackStack ();
[<Android.Runtime.Register("disallowAddToBackStack", "()Landroid/app/FragmentTransaction;", "GetDisallowAddToBackStackHandler")>]
abstract member DisallowAddToBackStack : unit -> Android.App.FragmentTransaction

Returns

Attributes

Remarks

Disallow calls to #addToBackStack(String). Any future calls to addToBackStack will throw IllegalStateException. If addToBackStack has already been called, this method will throw IllegalStateException.

Java documentation for android.app.FragmentTransaction.disallowAddToBackStack().

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