FragmentController.SaveAllState Method

Definition

Saves the state for all Fragments.

[Android.Runtime.Register("saveAllState", "()Landroid/os/Parcelable;", "GetSaveAllStateHandler", ApiSince=23)]
public virtual Android.OS.IParcelable? SaveAllState();
[<Android.Runtime.Register("saveAllState", "()Landroid/os/Parcelable;", "GetSaveAllStateHandler", ApiSince=23)>]
abstract member SaveAllState : unit -> Android.OS.IParcelable
override this.SaveAllState : unit -> Android.OS.IParcelable

Returns

Attributes

Remarks

Saves the state for all Fragments.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.FragmentController.saveAllState.

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