Share via


View.SaveEnabled Property

Definition

Indicates whether this view will save its state (that is, whether its #onSaveInstanceState method will be called). -or- Controls whether the saving of this view's state is enabled (that is, whether its #onSaveInstanceState method will be called).

public virtual bool SaveEnabled { [Android.Runtime.Register("isSaveEnabled", "()Z", "GetIsSaveEnabledHandler")] get; [Android.Runtime.Register("setSaveEnabled", "(Z)V", "GetSetSaveEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isSaveEnabled", "()Z", "GetIsSaveEnabledHandler")>]
[<set: Android.Runtime.Register("setSaveEnabled", "(Z)V", "GetSetSaveEnabled_ZHandler")>]
member this.SaveEnabled : bool with get, set

Property Value

Returns true if the view state saving is enabled, else false.

Attributes

Remarks

Property getter documentation:

Indicates whether this view will save its state (that is, whether its #onSaveInstanceState method will be called).

Java documentation for android.view.View.isSaveEnabled().

Property setter documentation:

Controls whether the saving of this view's state is enabled (that is, whether its #onSaveInstanceState method will be called). Note that even if freezing is enabled, the view still must have an id assigned to it (via #setId(int)) for its state to be saved. This flag can only disable the saving of this view; any child views may still have their state saved.

Java documentation for android.view.View.setSaveEnabled(boolean).

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

See also