Android.Views.Accessibility.Action Enumeration
Enumerates values returned by several types and taken as a parameter of the AccessibilityNodeInfo.AddAction, AccessibilityNodeInfo.PerformAction, and AccessibilityNodeInfo.PerformAction members.

Syntax

public enum Action

Remarks

Enumerates values returned by the following: and taken as a parameter of the AccessibilityNodeInfo.AddAction, AccessibilityNodeInfo.PerformAction, and AccessibilityNodeInfo.PerformAction members.

Members

Member NameDescription
AccessibilityFocusAction that gives accessibility focus to the node.
ClearAccessibilityFocusAction that clears accessibility focus of the node.
ClearFocusAction that clears input focus of the node.
ClearSelectionAction that unselects the node.
ClickAction that clicks on the node info.
CollapseDocumentation for this section has not yet been entered.
CopyAction to copy the current selection to the clipboard.
CutAction to cut the current selection and place it to the clipboard.
DismissDocumentation for this section has not yet been entered.
ExpandDocumentation for this section has not yet been entered.
FocusAction that gives input focus to the node.
LongClickAction that long clicks on the node.
NextAtMovementGranularity

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: AccessibilityNodeInfo.ActionArgumentMovementGranularityInt <_2c_> AccessibilityNodeInfo.ActionArgumentExtendSelectionBoolean

Example: Move to the previous character and do not extend selection.

java Example

   Bundle arguments = new Bundle();
   arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT,
           AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER);
   arguments.putBoolean(AccessibilityNodeInfo.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN,
           false);
   info.performAction(AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY, arguments);
 

NextHtmlElement

Action to move to the next HTML element of a given type. For example, move to the BUTTON, INPUT, TABLE, etc.

Arguments: AccessibilityNodeInfo.ActionArgumentHtmlElementString

Example:

java Example

   Bundle arguments = new Bundle();
   arguments.putString(AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING, "BUTTON");
   info.performAction(AccessibilityNodeInfo.ACTION_NEXT_HTML_ELEMENT, arguments);
 

PasteAction to paste the current clipboard content.
PreviousAtMovementGranularity

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: AccessibilityNodeInfo.ActionArgumentMovementGranularityInt <_2c_> AccessibilityNodeInfo.ActionArgumentExtendSelectionBoolean

Example: Move to the next character and do not extend selection.

java Example

   Bundle arguments = new Bundle();
   arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT,
           AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER);
   arguments.putBoolean(AccessibilityNodeInfo.ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN,
           false);
   info.performAction(AccessibilityNodeInfo.ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY,
           arguments);
 

PreviousHtmlElement

Action to move to the previous HTML element of a given type. For example, move to the BUTTON, INPUT, TABLE, etc.

Arguments: AccessibilityNodeInfo.ActionArgumentHtmlElementString

Example:

java Example

   Bundle arguments = new Bundle();
   arguments.putString(AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING, "BUTTON");
   info.performAction(AccessibilityNodeInfo.ACTION_PREVIOUS_HTML_ELEMENT, arguments);
 

ScrollBackwardAction to scroll the node content backward.
ScrollForwardAction to scroll the node content forward.
SelectAction that selects the node.
SetSelection

Action to set the selection. Performing this action with no arguments clears the selection.

Arguments: AccessibilityNodeInfo.ActionArgumentSelectionStartInt , AccessibilityNodeInfo.ActionArgumentSelectionEndInt

Example:

java Example

   Bundle arguments = new Bundle();
   arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_START_INT, 1);
   arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_END_INT, 2);
   info.performAction(AccessibilityNodeInfo.ACTION_SET_SELECTION, arguments);
 

SetTextDocumentation for this section has not yet been entered.

Requirements

Namespace: Android.Views.Accessibility
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0