Language

Fragment.IsStateSaved Property

Definition

Gets whether the fragment manager has saved its state.

public bool IsStateSaved { [Android.Runtime.Register("isStateSaved", "()Z", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("isStateSaved", "()Z", "", ApiSince=26)>]
member this.IsStateSaved : bool

Property Value

true if the fragment has a manager and that manager has saved its state; otherwise, false.

Attributes

Remarks

Returns whether the fragment manager has saved its state, or false if this fragment has no manager. Avoid operations that change saved state while this property is true. For example, changing Arguments fails if the fragment is already active.

Android reference for android.app.Fragment.isStateSaved.

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