Lingua

AccessibilityNodeInfo.AccessibilityAction.ActionSetText Property

Definition

Action that sets the text of the node.

[Android.Runtime.Register("ACTION_SET_TEXT")]
public static Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction ActionSetText { get; }
[<Android.Runtime.Register("ACTION_SET_TEXT")>]
static member ActionSetText : Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction

Property Value

Attributes

Remarks

Action that sets the text of the node. Performing the action without argument, using null or empty CharSequence will clear the text. This action will also put the cursor at the end of text.

The UI element that implements this should send a AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED event if its text is updated. This element should also return true for AccessibilityNodeInfo.isEditable().

Android reference for android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_SET_TEXT.

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