AccessibilityNodeInfo.ActionSetText Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.Accessibility.Action enum directly instead of this field.

Action that sets the text of the node.

[Android.Runtime.Register("ACTION_SET_TEXT")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.Accessibility.Action enum directly instead of this field.", true)]
public const Android.Views.Accessibility.Action ActionSetText = 2097152;
[<Android.Runtime.Register("ACTION_SET_TEXT")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.Accessibility.Action enum directly instead of this field.", true)>]
val mutable ActionSetText : Android.Views.Accessibility.Action

Field Value

Value = 2097152

Implements

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.

<strong>Arguments:</strong> #ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE<br> <strong>Example:</strong> <pre><p> Bundle arguments = new Bundle(); arguments.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, "android"); info.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments); </pre>

Java documentation for android.view.accessibility.AccessibilityNodeInfo.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