ACTION_SET_TEXT

val ACTION_SET_TEXT: Int = 2097152(source)

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.

Arguments:ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCEExample:


  Bundle arguments = new Bundle();
  arguments.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,
      "android");
  info.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments);

See also