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
constructor(actionId: Int, label: CharSequence)
Creates a new instance.
constructor(actionId: Int, label: CharSequence, command: AccessibilityViewCommand)
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Action to trigger a drop of the content being dragged.
Link copied to clipboard
Link copied to clipboard
Action that gives input focus to the node.
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Action to paste the current clipboard content.
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Action that brings fully on screen the next node in the specified direction.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Action that scrolls the node to make the specified collection position visible on screen.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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

Functions

Link copied to clipboard
open fun equals(@Nullable obj: Any): Boolean
Link copied to clipboard
open fun getId(): Int
Gets the id for this action.
Link copied to clipboard
Gets the label for this action.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun perform(view: View, arguments: Bundle): Boolean
Performs the action.
Link copied to clipboard
open fun toString(): String