java.lang.Object | |
↳ | android.support.v4.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the id for this action.
| |||||||||||
Gets the label for this action.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Action that gives accessibility focus to the node.
Action that clears accessibility focus of the node.
Action that clears input focus of the node.
Action that deselects the node.
Action that clicks on the node info.
Action to collapse an expandable node.
Action to copy the current selection to the clipboard.
Action to cut the current selection and place it to the clipboard.
Action to dismiss a dismissable node.
Action to expand an expandable node.
Action that gives input focus to the node.
Action that long clicks on the node.
Action that requests to go to the next entity in this node's text at a given movement granularity. For example, move to the next character, word, etc.
Arguments:
Bundle arguments = new Bundle();
arguments.putInt(AccessibilityNodeInfoCompat.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT,
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_CHARACTER);
arguments.putBoolean(
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN, false);
info.performAction(
AccessibilityActionCompat.ACTION_NEXT_AT_MOVEMENT_GRANULARITY.getId(),
arguments);
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT
,
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN
Example: Move to the previous character and do not extend selection.
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN
AccessibilityNodeInfoCompat.getMovementGranularities()
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_CHARACTER
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_WORD
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_LINE
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_PARAGRAPH
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_PAGE
Action to move to the next HTML element of a given type. For example, move to the BUTTON, INPUT, TABLE, etc.
Arguments:
Bundle arguments = new Bundle();
arguments.putString(
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_HTML_ELEMENT_STRING, "BUTTON");
info.performAction(
AccessibilityActionCompat.ACTION_NEXT_HTML_ELEMENT.getId(), arguments);
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_HTML_ELEMENT_STRING
Example:
Action to paste the current clipboard content.
Action that requests to go to the previous entity in this node's text at a given movement granularity. For example, move to the next character, word, etc.
Arguments:
Bundle arguments = new Bundle();
arguments.putInt(AccessibilityNodeInfoCompat.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT,
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_CHARACTER);
arguments.putBoolean(
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN, false);
info.performAction(
AccessibilityActionCompat.ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY.getId(),
arguments);
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT
,
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN
Example: Move to the next character and do not extend selection.
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN
AccessibilityNodeInfoCompat.setMovementGranularities(int)
AccessibilityNodeInfoCompat.getMovementGranularities()
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_CHARACTER
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_WORD
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_LINE
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_PARAGRAPH
AccessibilityNodeInfoCompat.MOVEMENT_GRANULARITY_PAGE
Action to move to the previous HTML element of a given type. For example, move to the BUTTON, INPUT, TABLE, etc.
Arguments:
Bundle arguments = new Bundle();
arguments.putString(
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_HTML_ELEMENT_STRING, "BUTTON");
info.performAction(
AccessibilityActionCompat.ACTION_PREVIOUS_HTML_ELEMENT.getId(), arguments);
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_HTML_ELEMENT_STRING
Example:
Action to scroll the node content backward.
Action to scroll the node content forward.
Action that selects the node.
Action to set the selection. Performing this action with no arguments clears the selection.
Arguments:
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);
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SELECTION_START_INT
,
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SELECTION_END_INT
Example:
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:
Bundle arguments = new Bundle();
arguments.putCharSequence(AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,
"android");
info.performAction(AccessibilityActionCompat.ACTION_SET_TEXT.getId(), arguments);
AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE
Example:
Creates a new instance.
actionId | The action id. |
---|---|
label | The action label. |
Gets the id for this action.
Gets the label for this action. Its purpose is to describe the action to user.