ACTION_SET_SELECTION
Action to set the selection. Performing this action with no arguments clears the selection.
Arguments:AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SELECTION_START_INT, AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SELECTION_END_INTExample:
Bundle arguments = new Bundle();
arguments.putInt(AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SELECTION_START_INT, 1);
arguments.putInt(AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SELECTION_END_INT, 2);
info.performAction(AccessibilityActionCompat.ACTION_SET_SELECTION.getId(), arguments);
Content copied to clipboard
Content copied to clipboard
If this is a text selection, the UI element that implements this should send a TYPE_VIEW_TEXT_SELECTION_CHANGED event if its selection is updated. This element should also return true
for isTextSelectable.
See also
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SELECTION_END_INT