Share via


AccessibilityNodeInfo.CheckedState Property

Definition

Gets the checked state of this node. -or- Sets the checked state of this node.

public virtual Android.Views.Accessibility.CheckedState CheckedState { [Android.Runtime.Register("getChecked", "()I", "GetGetCheckedHandler", ApiSince=36)] get; [Android.Runtime.Register("setChecked", "(I)V", "GetSetChecked_IHandler", ApiSince=36)] set; }
[<get: Android.Runtime.Register("getChecked", "()I", "GetGetCheckedHandler", ApiSince=36)>]
[<set: Android.Runtime.Register("setChecked", "(I)V", "GetSetChecked_IHandler", ApiSince=36)>]
member this.CheckedState : Android.Views.Accessibility.CheckedState with get, set

Property Value

The checked state, one of: <ul> <li>#CHECKED_STATE_FALSE<li>#CHECKED_STATE_TRUE<li>#CHECKED_STATE_PARTIAL</ul>

Attributes

Remarks

Property getter documentation:

Gets the checked state of this node. This is only meaningful when #isCheckable() returns true.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.getChecked().

Property setter documentation:

Sets the checked state of this node. This is only meaningful when #isCheckable() returns true.

<strong>Note:</strong> Cannot be called from an android.accessibilityservice.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.setChecked(int).

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