Partager via


TwoStatePreference.Checked Property

Definition

Returns the checked state. -or- Sets the checked state and saves it to the SharedPreferences.

public virtual bool Checked { [Android.Runtime.Register("isChecked", "()Z", "GetIsCheckedHandler")] get; [Android.Runtime.Register("setChecked", "(Z)V", "GetSetChecked_ZHandler")] set; }
[<get: Android.Runtime.Register("isChecked", "()Z", "GetIsCheckedHandler")>]
[<set: Android.Runtime.Register("setChecked", "(Z)V", "GetSetChecked_ZHandler")>]
member this.Checked : bool with get, set

Property Value

The checked state.

Attributes

Remarks

Property getter documentation:

Returns the checked state.

Java documentation for android.preference.TwoStatePreference.isChecked().

Property setter documentation:

Sets the checked state and saves it to the SharedPreferences.

Java documentation for android.preference.TwoStatePreference.setChecked(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