AccessibilityNodeInfo.TextSelectable Property

Definition

Gets if the node has selectable text. -or- Sets if the node has selectable text.

public virtual bool TextSelectable { [Android.Runtime.Register("isTextSelectable", "()Z", "GetIsTextSelectableHandler", ApiSince=33)] get; [Android.Runtime.Register("setTextSelectable", "(Z)V", "GetSetTextSelectable_ZHandler", ApiSince=33)] set; }
[<get: Android.Runtime.Register("isTextSelectable", "()Z", "GetIsTextSelectableHandler", ApiSince=33)>]
[<set: Android.Runtime.Register("setTextSelectable", "(Z)V", "GetSetTextSelectable_ZHandler", ApiSince=33)>]
member this.TextSelectable : bool with get, set

Property Value

True if the node has selectable text.

Attributes

Remarks

Property getter documentation:

Gets if the node has selectable text.

Services should use #ACTION_SET_SELECTION for selection. Editable text nodes must also be selectable. But not all UIs will populate this field, so services should consider 'isTextSelectable | isEditable' to ensure they don't miss nodes with selectable text.

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

Property setter documentation:

Sets if the node has selectable text.

<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.setTextSelectable(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