Sdílet prostřednictvím


Preference.Persistent Property

Definition

Checks whether this Preference is persistent. -or- Sets whether this Preference is persistent.

public virtual bool Persistent { [Android.Runtime.Register("isPersistent", "()Z", "GetIsPersistentHandler")] get; [Android.Runtime.Register("setPersistent", "(Z)V", "GetSetPersistent_ZHandler")] set; }
[<get: Android.Runtime.Register("isPersistent", "()Z", "GetIsPersistentHandler")>]
[<set: Android.Runtime.Register("setPersistent", "(Z)V", "GetSetPersistent_ZHandler")>]
member this.Persistent : bool with get, set

Property Value

True if it is persistent.

Attributes

Remarks

Property getter documentation:

Checks whether this Preference is persistent. If it is, it stores its value(s) into the persistent SharedPreferences storage by default or into PreferenceDataStore if assigned.

Java documentation for android.preference.Preference.isPersistent().

Property setter documentation:

Sets whether this Preference is persistent. When persistent, it stores its value(s) into the persistent SharedPreferences storage by default or into PreferenceDataStore if assigned.

Java documentation for android.preference.Preference.setPersistent(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