AccessibilityActionCompat
A class defining an action that can be performed on an AccessibilityNodeInfo. Each action has a unique id and a label.
There are three categories of actions:
- Standard actions - These are actions that are reported and handled by the standard UI widgets in the platform. Each standard action is associated with a resource id, e.g. accessibilityActionScrollUp. Note that actions were formerly associated with static constants defined in this class, e.g. ACTION_FOCUS. These actions will have
null
labels. - Custom actions action - These are actions that are reported and handled by custom widgets. i.e. ones that are not part of the UI toolkit. For example, an application may define a custom action for clearing the user history.
- Overriden standard actions - These are actions that override standard actions to customize them. For example, an app may add a label to the standard ACTION_CLICK action to indicate to the user that this action clears browsing history.
Note: Views which support these actions should invoke setImportantForAccessibility with IMPORTANT_FOR_ACCESSIBILITY_YES to ensure an android.accessibilityservice.AccessibilityService can discover the set of supported actions.
Constructors
Link copied to clipboard
Creates a new instance.
Creates a new instance.
Properties
Link copied to clipboard
Action that gives accessibility focus to the node.
Link copied to clipboard
Action that clears accessibility focus of the node.
Link copied to clipboard
Action that clears input focus of the node.
Link copied to clipboard
Action that deselects the node.
Link copied to clipboard
Action that clicks on the node info.
Link copied to clipboard
Action to collapse an expandable node.
Link copied to clipboard
Action that context clicks the node.
Link copied to clipboard
Action to copy the current selection to the clipboard.
Link copied to clipboard
Action to cut the current selection and place it to the clipboard.
Link copied to clipboard
Action to dismiss a dismissable node.
Link copied to clipboard
Action to cancel a drag.
Link copied to clipboard
Action to trigger a drop of the content being dragged.
Link copied to clipboard
Action to start a drag.
Link copied to clipboard
Action to expand an expandable node.
Link copied to clipboard
Action that gives input focus to the node.
Link copied to clipboard
Action to hide a tooltip.
Link copied to clipboard
Action to send an ime actionId which is from actionId.
Link copied to clipboard
Action that long clicks on the node.
Link copied to clipboard
Action to move a window to a new location.
Link copied to clipboard
Action that requests to go to the next entity in this node's text at a given movement granularity.
Link copied to clipboard
Action to move to the next HTML element of a given type.
Link copied to clipboard
Action to move to the page below.
Link copied to clipboard
Action to move to the page left.
Link copied to clipboard
Action to move to the page right.
Link copied to clipboard
Action to move to the page above.
Link copied to clipboard
Action to paste the current clipboard content.
Link copied to clipboard
Action that presses and holds a node.
Link copied to clipboard
Action that requests to go to the previous entity in this node's text at a given movement granularity.
Link copied to clipboard
Action to move to the previous HTML element of a given type.
Link copied to clipboard
Action to scroll the node content backward.
Link copied to clipboard
Action to scroll the node content down.
Link copied to clipboard
Action to scroll the node content forward.
Link copied to clipboard
Action that brings fully on screen the next node in the specified direction.
Link copied to clipboard
Action to scroll the node content left.
Link copied to clipboard
Action to scroll the node content right.
Link copied to clipboard
Action that scrolls the node to make the specified collection position visible on screen.
Link copied to clipboard
Action to scroll the node content up.
Link copied to clipboard
Action that selects the node.
Link copied to clipboard
Action that sets progress between RangeInfo.getMin() and RangeInfo.getMax().
Link copied to clipboard
Action to set the selection.
Link copied to clipboard
Action that sets the text of the node.
Link copied to clipboard
Action that requests the node make its bounding rectangle visible on the screen, scrolling if necessary just enough.
Link copied to clipboard
Action to show suggestions for editable text.
Link copied to clipboard
Action to show a tooltip.
Functions
Link copied to clipboard
open fun createReplacementAction(label: CharSequence, command: AccessibilityViewCommand): AccessibilityNodeInfoCompat.AccessibilityActionCompat
Link copied to clipboard
Gets the label for this action.
Link copied to clipboard
Performs the action.