# AccessibilityNodeInfoCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/view/accessibility/AccessibilityNodeInfoCompat.java+class:androidx.core.view.accessibility.AccessibilityNodeInfoCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
public class AccessibilityNodeInfoCompat
```

<br />

*** ** * ** ***

Helper for accessing `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html` in a backwards compatible fashion.

## Summary

| ### Nested types |
|---|
| `public class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat` A class defining an action that can be performed on an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html`. |
| `public class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionInfoCompat` Class with information if a node is a collection. |
| `public final class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder` Class for building `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionInfoCompat` objects. |
| `public class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat` Class with information if a node is a collection item. |
| `public final class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat.Builder` Builder for creating `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat` objects. |
| `public class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.MathInfoCompat extends https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat` Compat class for `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.MathInfo.html`, which is a class that holds information about a node that represents a mathematical expression. |
| `public class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.RangeInfoCompat` Class with information if a node is a range. |
| `public final class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.SelectionCompat` Compat class for AccessibilityNodeInfo.Selection, which is a class that represents a selection of content that may extend across more than one `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html` instance. |
| `public final class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.SelectionPositionCompat` Compat class for AccessibilityNodeInfo.SelectionPosition, which is a class that defines either the start or end of a selection that can span across multiple AccessibilityNodeInfo objects. |
| `public abstract class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat` Compat class for `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.StructuredDataInfo.html`, which is a abstract base class for holding structured semantic information about a node. |
| `public final class https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat` Class with information of touch delegated views and regions. |

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ACCESSIBILITY_FOCUS() = 64` Action that gives accessibility focus to the node. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_COLUMN_INT() = "android.view.accessibility.action.ARGUMENT_COLUMN_INT"` Argument for specifying the collection column to make visible on screen. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_DIRECTION_INT() = "androidx.core.view.accessibility.action.ARGUMENT_DIRECTION_INT"` Argument to represent the direction when using `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_IN_DIRECTION()`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN() = "ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN"` Argument for whether when moving at granularity to extend the selection or to move it otherwise. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_HTML_ELEMENT_STRING() = "ACTION_ARGUMENT_HTML_ELEMENT_STRING"` Argument for which HTML element to get moving to the next/previous HTML element. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT() = "ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT"` Argument for which movement granularity to be used when traversing the node text. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_MOVE_WINDOW_X() = "ACTION_ARGUMENT_MOVE_WINDOW_X"` Argument for specifying the x coordinate to which to move a window. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_MOVE_WINDOW_Y() = "ACTION_ARGUMENT_MOVE_WINDOW_Y"` Argument for specifying the y coordinate to which to move a window. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_PRESS_AND_HOLD_DURATION_MILLIS_INT() = "android.view.accessibility.action.ARGUMENT_PRESS_AND_HOLD_DURATION_MILLIS_INT"` Argument to represent the duration in milliseconds to press and hold a node. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_PROGRESS_VALUE() = "android.view.accessibility.action.ARGUMENT_PROGRESS_VALUE"` Argument for specifying the progress value to set. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_ROW_INT() = "android.view.accessibility.action.ARGUMENT_ROW_INT"` Argument for specifying the collection row to make visible on screen. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SCROLL_AMOUNT_FLOAT() = "androidx.core.view.accessibility.action.ARGUMENT_SCROLL_AMOUNT_FLOAT"` Argument to represent the scroll amount as a percent of the visible area of a node, with 1.0F as the default. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SELECTION_END_INT() = "ACTION_ARGUMENT_SELECTION_END_INT"` Argument for specifying the selection end. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SELECTION_PARCELABLE() = "android.view.accessibility.action.ARGUMENT_SELECTION_PARCELABLE"` Argument for specifying the extended selection. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SELECTION_START_INT() = "ACTION_ARGUMENT_SELECTION_START_INT"` Argument for specifying the selection start. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE() = "ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE"` Argument for specifying the text content to set |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLEAR_ACCESSIBILITY_FOCUS() = 128` Action that clears accessibility focus of the node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLEAR_FOCUS() = 2` Action that unfocuses the node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLEAR_SELECTION() = 8` Action that unselects the node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLICK() = 16` Action that clicks on the node info. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_COLLAPSE() = 524288` Action to collapse an expandable node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_COPY() = 16384` Action to copy the current selection to the clipboard. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CUT() = 65536` Action to cut the current selection and place it to the clipboard. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_DISMISS() = 1048576` Action to dismiss a dismissible node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_EXPAND() = 262144` Action to expand an expandable node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_FOCUS() = 1` Action that focuses the node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_LONG_CLICK() = 32` Action that long clicks on the node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_NEXT_AT_MOVEMENT_GRANULARITY() = 256` Action that requests to go to the next entity in this node's text at a given movement granularity. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_NEXT_HTML_ELEMENT() = 1024` Action to move to the next HTML element of a given type. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_PASTE() = 32768` Action to paste the current clipboard content. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY() = 512` Action that requests to go to the previous entity in this node's text at a given movement granularity. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_PREVIOUS_HTML_ELEMENT() = 2048` Action to move to the previous HTML element of a given type. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_SCROLL_BACKWARD() = 8192` Action to scroll the node content backward. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_SCROLL_FORWARD() = 4096` Action to scroll the node content forward. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_SELECT() = 4` Action that selects the node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_SET_SELECTION() = 131072` Action to set the selection. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_SET_TEXT() = 2097152` Action that sets the text of the node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_FALSE() = 0` Checked state for a node that is not checked. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_PARTIAL() = 2` Checked state for a node that is partially checked. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_TRUE() = 1` Checked state for a node that is checked. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_COLLAPSED() = 1` Expanded state for a collapsed expandable element. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_FULL() = 3` Expanded state for an expanded expandable element that cannot be expanded further. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_PARTIAL() = 2` Expanded state for an expanded expandable element that can still be expanded further. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_UNDEFINED() = 0` Expanded state for a non-expandable element |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH() = "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH"` Integer argument specifying the end index of the requested text location data. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_MAX_LENGTH() = 20000` The maximum allowed length of the requested text location data. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX() = "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX"` Integer argument specifying the start index of the requested text location data. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_IN_WINDOW_KEY() = "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_IN_WINDOW_KEY"` Key used to request and locate extra data for text character location in window coordinates. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY() = "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_KEY"` Key used to request and locate extra data for text character location. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_ANCESTORS() = 1` Prefetching strategy that prefetches the ancestors of the requested node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_BREADTH_FIRST() = 16` Prefetching strategy that prefetches the descendants of the requested node breadth-first. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_DEPTH_FIRST() = 8` Prefetching strategy that prefetches the descendants of the requested node depth-first. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_HYBRID() = 4` Prefetching strategy that prefetches the descendants in a hybrid depth first and breadth first approach. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_SIBLINGS() = 2` Prefetching strategy that prefetches the siblings of the requested node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_UNINTERRUPTIBLE() = 32` Prefetching flag that specifies prefetching should not be interrupted by a request to retrieve a node or perform an action on a node. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FOCUS_ACCESSIBILITY() = 2` The accessibility focus. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FOCUS_INPUT() = 1` The input focus. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MAX_NUMBER_OF_PREFETCHED_NODES() = 50` Maximum batch size of prefetched nodes for a request. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_CHARACTER() = 1` Movement granularity bit for traversing the text of a node by character. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_LINE() = 4` Movement granularity bit for traversing the text of a node by line. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_PAGE() = 16` Movement granularity bit for traversing the text of a node by page. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_PARAGRAPH() = 8` Movement granularity bit for traversing the text of a node by paragraph. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_WORD() = 2` Movement granularity bit for traversing the text of a node by word. |

| ### Public constructors |
|---|
| `[AccessibilityNodeInfoCompat](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#AccessibilityNodeInfoCompat(java.lang.Object))(https://developer.android.com/reference/java/lang/Object.html info)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#wrap(android.view.accessibility.AccessibilityNodeInfo)` instead. <br /> |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addAction(androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat)( https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat action )` Adds an action that can be performed on the node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addAction(int)(int action)` Adds an action that can be performed on the node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addChild(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` Adds a child. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addChild(android.view.View,int)(https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Adds a virtual child which is a descendant of the given `root`. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addLabeledBy(android.view.View)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html label)` Adds the view which serves as the label of the view represented by this info for accessibility purposes. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addLabeledBy(android.view.View,int)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Adds the view which serves as the label of the view represented by this info for accessibility purposes. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#canOpenPopup()()` Gets if this node opens a popup or a dialog. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html obj)` |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat>` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#findAccessibilityNodeInfosByText(java.lang.String)(https://developer.android.com/reference/java/lang/String.html text)` Finds `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html`s by text. |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat>` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#findAccessibilityNodeInfosByViewId(java.lang.String)(https://developer.android.com/reference/java/lang/String.html viewId)` Finds `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat`s by the fully qualified view id's resource name where a fully qualified id is of the from "package:id/id_resource_name". |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#findFocus(int)(int focus)` Find the view that has the specified focus type. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#focusSearch(int)(int direction)` Searches for the nearest view in the specified direction that can take input focus. |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat>` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getActionList()()` Gets the actions that can be performed on the node. |
| `int` | `[getActions](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getActions())()` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getActionList()` instead. <br /> |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getAvailableExtraData()()` Get the extra data available for this node. |
| `void` | `[getBoundsInParent](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getBoundsInParent(android.graphics.Rect))(https://developer.android.com/reference/android/graphics/Rect.html outBounds)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getBoundsInScreen(android.graphics.Rect)` instead. <br /> |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getBoundsInScreen(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html outBounds)` Gets the node bounds in screen coordinates. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getBoundsInWindow(android.graphics.Rect)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/graphics/Rect.html outBounds)` Gets the node bounds in window coordinates. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()()` Gets the checked state of this node. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChild(int)(int index)` Get the child at given index. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChild(int,int)(int index, int prefetchingStrategy)` Get the child at given index. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChildCount()()` Gets the number of children. |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getClassName()()` Gets the class this node comes from. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getCollectionInfo()()` Gets the collection info if the node is a collection. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getCollectionItemInfo()()` Gets the collection item info if the node is a collection item. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getContainerTitle()()` Returns the container title. |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getContentDescription()()` Gets the content description of this node. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getDrawingOrder()()` Get the drawing order of the view corresponding it this node. |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getError()()` Gets the error text of this node. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()()` Gets the expanded state for this node. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExtraRenderingInfo()()` Gets the `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.html` if the node is meant to be refreshed with extra data to examine rendering related accessibility issues. |
| `https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExtras()()` Gets an optional bundle with extra data. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getHintText()()` Gets the hint text of this node. |
| `https://developer.android.com/reference/java/lang/Object.html` | `[getInfo](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getInfo())()` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#unwrap()` instead. <br /> |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getInputType()()` Gets the input type of the source as defined by `https://developer.android.com/reference/android/text/InputType.html`. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getLabelFor()()` Gets the node info for which the view represented by this info serves as a label for accessibility purposes. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `[getLabeledBy](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getLabeledBy())()` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getLabeledByList()` instead. <br /> |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat>` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getLabeledByList()()` Gets the list of node infos which serve as the labels of the view represented by this info for accessibility purposes. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getLiveRegion()()` Gets the node's live region mode. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getMaxTextLength()()` Returns the maximum text length for this node. |
| `long` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getMinDurationBetweenContentChangesMillis()()` Gets the minimum time duration between two content change events. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getMovementGranularities()()` Gets the movement granularities for traversing the text of this node. |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getPackageName()()` Gets the package this node comes from. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getPaneTitle()()` Get the title of the pane represented by this node. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getParent()()` Gets the parent. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getParent(int)(int prefetchingStrategy)` Gets the parent. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.RangeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getRangeInfo()()` Gets the range info if this node is a range. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getRoleDescription()()` Gets the custom role description. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.SelectionCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getSelection()()` Gets the selection of this node. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getStateDescription()()` Gets the state description of this node. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getStructuredDataInfo()()` Gets additional structured data properties of this node. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getSupplementalDescription()()` Returns the supplemental description of this `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat`. |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getText()()` Gets the text of this node. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getTextSelectionEnd()()` Gets the text selection end. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getTextSelectionStart()()` Gets the text selection start. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getTooltipText()()` Gets the tooltip text of this node. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getTouchDelegateInfo()()` Get the `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat` for touch delegate behavior with the represented view. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getTraversalAfter()()` Gets the node after which this one is visited in accessibility traversal. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getTraversalBefore()()` Gets the node before which this one is visited during traversal. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getUniqueId()()` Gets the unique id of this node. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getViewIdResourceName()()` Gets the fully qualified resource name of the source view's id. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityWindowInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getWindow()()` Gets the window to which this node belongs. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getWindowId()()` Gets the id of the window from which the info comes from. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#hasRequestInitialAccessibilityFocus()()` Gets whether the node has `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setRequestInitialAccessibilityFocus(boolean)`. |
| `int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#hashCode()()` |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isAccessibilityDataSensitive()()` Gets if the node's accessibility data is considered sensitive. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isAccessibilityFocused()()` Gets whether this node is accessibility focused. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isCheckable()()` Gets whether this node is checkable. |
| `boolean` | `[isChecked](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isChecked())()` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()` instead. <br /> |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isClickable()()` Gets whether this node is clickable. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isContentInvalid()()` Gets if the content of this node is invalid. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isContextClickable()()` Gets whether this node is context clickable. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isDismissable()()` Gets if the node can be dismissed. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isEditable()()` Gets if the node is editable. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isEnabled()()` Gets whether this node is enabled. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isFieldRequired()()` Gets whether a node representing a form field requires input or selection. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isFocusable()()` Gets whether this node is focusable. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isFocused()()` Gets whether this node is focused. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isGranularScrollingSupported()()` Gets if the node supports granular scrolling. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isHeading()()` Returns whether node represents a heading. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isImportantForAccessibility()()` Returns whether the node originates from a view considered important for accessibility. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isLongClickable()()` Gets whether this node is long clickable. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isMultiLine()()` Gets if the node is a multi line editable text. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isPassword()()` Gets whether this node is a password. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isScreenReaderFocusable()()` Returns whether the node is explicitly marked as a focusable unit by a screen reader. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isScrollable()()` Gets if the node is scrollable. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isSelected()()` Gets whether this node is selected. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isShowingHintText()()` Returns whether the node's text represents a hint for the user to enter text. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isTextEntryKey()()` Returns whether node represents a text entry key that is part of a keyboard or keypad. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isTextSelectable()()` Gets if the node has selectable text. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isVisibleToUser()()` Gets whether this node is visible to the user. |
| `static https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#obtain()()` Returns a cached instance if such is available otherwise a new one. |
| `static https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#obtain(androidx.core.view.accessibility.AccessibilityNodeInfoCompat)(https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat info)` Returns a cached instance if such is available or a new one is create. |
| `static https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#obtain(android.view.View)(https://developer.android.com/reference/android/view/View.html source)` Returns a cached instance if such is available otherwise a new one and sets the source. |
| `static https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#obtain(android.view.View,int)(https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Returns a cached instance if such is available otherwise a new one and sets the source. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#performAction(int)(int action)` Performs an action on the node. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#performAction(int,android.os.Bundle)(int action, https://developer.android.com/reference/android/os/Bundle.html arguments)` Performs an action on the node. |
| `void` | `[recycle](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#recycle())()` **This method is deprecated.** Accessibility Object recycling is no longer necessary or functional. <br /> |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#refresh()()` Refreshes this info with the latest state of the view it represents. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#removeAction(androidx.core.view.accessibility.AccessibilityNodeInfoCompat.AccessibilityActionCompat)( https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat action )` Removes an action that can be performed on the node. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#removeChild(android.view.View)(https://developer.android.com/reference/android/view/View.html child)` Removes a child. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#removeChild(android.view.View,int)(https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Removes a virtual child which is a descendant of the given `root`. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#removeLabeledBy(android.view.View)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html label)` Removes a label. |
| `boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#removeLabeledBy(android.view.View,int)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Removes a label which is a virtual descendant of the given `root`. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setAccessibilityDataSensitive(boolean)(boolean accessibilityDataSensitive)` Sets whether this node's accessibility data is considered sensitive. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setAccessibilityFocused(boolean)(boolean focused)` Sets whether this node is accessibility focused. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setAvailableExtraData(java.util.List<java.lang.String>)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html> extraDataKeys)` Set the extra data available for this node. |
| `void` | `[setBoundsInParent](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setBoundsInParent(android.graphics.Rect))(https://developer.android.com/reference/android/graphics/Rect.html bounds)` **This method is deprecated.** Accessibility services should not care about these bounds. <br /> |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setBoundsInScreen(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect.html bounds)` Sets the node bounds in screen coordinates. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setBoundsInWindow(android.graphics.Rect)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/graphics/Rect.html bounds)` Sets the node bounds in window coordinates. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setCanOpenPopup(boolean)(boolean opensPopup)` Sets if this node opens a popup or a dialog. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setCheckable(boolean)(boolean checkable)` Sets whether this node is checkable. |
| `void` | `[setChecked](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(boolean))(boolean checked)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(int)` instead. <br /> |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(int)(int checked)` Sets the checked state of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setClassName(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html className)` Sets the class this node comes from. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setClickable(boolean)(boolean clickable)` Sets whether this node is clickable. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setCollectionInfo(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html collectionInfo)` |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setCollectionItemInfo(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html collectionItemInfo)` |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setContainerTitle(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html containerTitle)` Sets the container title for app-developer-defined container which can be any type of ViewGroup or layout. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setContentDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html contentDescription)` Sets the content description of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setContentInvalid(boolean)(boolean contentInvalid)` Sets if the content of this node is invalid. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setContextClickable(boolean)(boolean contextClickable)` Sets whether this node is context clickable. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setDismissable(boolean)(boolean dismissable)` Sets if the node can be dismissed. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setDrawingOrder(int)(int drawingOrderInParent)` Set the drawing order of the view corresponding it this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setEditable(boolean)(boolean editable)` Sets whether this node is editable. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setEnabled(boolean)(boolean enabled)` Sets whether this node is enabled. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setError(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html error)` Sets the error text of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setExpandedState(int)(int state)` Sets the expanded state of the node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setFieldRequired(boolean)(boolean required)` Sets whether `this` node represents a form field that requires input or selection. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setFocusable(boolean)(boolean focusable)` Sets whether this node is focusable. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setFocused(boolean)(boolean focused)` Sets whether this node is focused. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setGranularScrollingSupported(boolean)(boolean granularScrollingSupported)` Sets if the node supports granular scrolling. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setHeading(boolean)(boolean isHeading)` Sets whether the node represents a heading. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setHintText(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html hintText)` Sets the hint text of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setImportantForAccessibility(boolean)(boolean important)` Sets whether the node is considered important for accessibility. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setInputType(int)(int inputType)` Sets the input type of the source as defined by `https://developer.android.com/reference/android/text/InputType.html`. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLabelFor(android.view.View)(https://developer.android.com/reference/android/view/View.html labeled)` Sets the view for which the view represented by this info serves as a label for accessibility purposes. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLabelFor(android.view.View,int)(https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Sets the view for which the view represented by this info serves as a label for accessibility purposes. |
| `void` | `[setLabeledBy](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLabeledBy(android.view.View))(https://developer.android.com/reference/android/view/View.html label)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addLabeledBy(android.view.View)` or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#removeLabeledBy(android.view.View)` instead. <br /> |
| `void` | `[setLabeledBy](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLabeledBy(android.view.View,int))(https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addLabeledBy(android.view.View,int)` or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#removeLabeledBy(android.view.View,int)` instead. <br /> |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLiveRegion(int)(int mode)` Sets the node's live region mode. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLongClickable(boolean)(boolean longClickable)` Sets whether this node is long clickable. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setMaxTextLength(int)(int max)` Sets the maximum text length, or -1 for no limit. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setMinDurationBetweenContentChangesMillis(long)(long duration)` Sets the minimum time duration between two content change events, which is used in throttling content change events in accessibility services. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setMovementGranularities(int)(int granularities)` Sets the movement granularities for traversing the text of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setMultiLine(boolean)(boolean multiLine)` Sets if the node is a multi line editable text. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setPackageName(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html packageName)` Sets the package this node comes from. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setPaneTitle(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html paneTitle)` If this node represents a visually distinct region of the screen that may update separately from the rest of the window, it is considered a pane. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setParent(android.view.View)(https://developer.android.com/reference/android/view/View.html parent)` Sets the parent. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setParent(android.view.View,int)(https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Sets the parent to be a virtual descendant of the given `root`. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setPassword(boolean)(boolean password)` Sets whether this node is a password. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setQueryFromAppProcessEnabled(android.view.View,boolean)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html view, boolean enabled)` Connects this node to the View's root so that operations on this node can query the entire `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` tree and perform accessibility actions on nodes. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setRangeInfo(androidx.core.view.accessibility.AccessibilityNodeInfoCompat.RangeInfoCompat)(https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.RangeInfoCompat rangeInfo)` Sets the range info if this node is a range. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setRequestInitialAccessibilityFocus(boolean)( boolean requestInitialAccessibilityFocus )` Sets whether the node has requested initial accessibility focus. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setRoleDescription(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html roleDescription)` Sets the custom role description. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setScreenReaderFocusable(boolean)(boolean screenReaderFocusable)` Sets whether the node should be considered a focusable unit by a screen reader. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setScrollable(boolean)(boolean scrollable)` Sets if the node is scrollable. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSelected(boolean)(boolean selected)` Sets whether this node is selected. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSelection(androidx.core.view.accessibility.AccessibilityNodeInfoCompat.SelectionCompat)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.SelectionCompat selection )` Sets the selection of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setShowingHintText(boolean)(boolean showingHintText)` Sets whether the node's text represents a hint for the user to enter text. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSource(android.view.View)(https://developer.android.com/reference/android/view/View.html source)` Sets the source. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSource(android.view.View,int)(https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Sets the source to be a virtual descendant of the given `root`. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setStateDescription(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html stateDescription)` Sets the state description of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setStructuredDataInfo(androidx.core.view.accessibility.AccessibilityNodeInfoCompat.StructuredDataInfoCompat)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat structuredDataInfoCompat )` Sets additional structured data properties of this node, such as for a mathematical expression. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSupplementalDescription(java.lang.CharSequence)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html supplementalDescription )` Sets the supplemental description of this `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat`. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html text)` Sets the text of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTextEntryKey(boolean)(boolean isTextEntryKey)` Sets whether the node represents a text entry key that is part of a keyboard or keypad. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTextSelectable(boolean)(boolean selectableText)` Sets if the node has selectable text. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTextSelection(int,int)(int start, int end)` Sets the text selection start and end. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTooltipText(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html tooltipText)` Sets the tooltip text of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTouchDelegateInfo(androidx.core.view.accessibility.AccessibilityNodeInfoCompat.TouchDelegateInfoCompat)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat delegatedInfo )` Set touch delegate info if the represented view has a `https://developer.android.com/reference/android/view/TouchDelegate.html`. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTraversalAfter(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` Sets the view whose node is visited after this one in accessibility traversal. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTraversalAfter(android.view.View,int)(https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Sets the node after which this one is visited in accessibility traversal. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTraversalBefore(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` Sets the view before whose node this one should be visited during traversal. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTraversalBefore(android.view.View,int)(https://developer.android.com/reference/android/view/View.html root, int virtualDescendantId)` Sets the node before which this one is visited during traversal. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setUniqueId(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html uniqueId)` Sets the unique id of this node. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setViewIdResourceName(java.lang.String)(https://developer.android.com/reference/java/lang/String.html viewId)` Sets the fully qualified resource name of the source view's id. |
| `void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setVisibleToUser(boolean)(boolean visibleToUser)` Sets whether this node is visible to the user. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#toString()()` |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#unwrap()()` |
| `static https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#wrap(android.view.accessibility.AccessibilityNodeInfo)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html info)` Creates a new instance wrapping an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html`. |

## Constants

### ACTION_ACCESSIBILITY_FOCUS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_ACCESSIBILITY_FOCUS = 64
```

Action that gives accessibility focus to the node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_ACCESSIBILITY_FOCUS()` |   |

### ACTION_ARGUMENT_COLUMN_INT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_COLUMN_INT = "android.view.accessibility.action.ARGUMENT_COLUMN_INT"
```

Argument for specifying the collection column to make visible on screen.

**Type:** int**Actions:**

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_TO_POSITION()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_TO_POSITION()` |   |

### ACTION_ARGUMENT_DIRECTION_INT

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String ACTION_ARGUMENT_DIRECTION_INT = "androidx.core.view.accessibility.action.ARGUMENT_DIRECTION_INT"
```

Argument to represent the direction when using `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_IN_DIRECTION()`.

The value of this argument can be one of:

- `https://developer.android.com/reference/android/view/View.html#FOCUS_DOWN`
- `https://developer.android.com/reference/android/view/View.html#FOCUS_UP`
- `https://developer.android.com/reference/android/view/View.html#FOCUS_LEFT`
- `https://developer.android.com/reference/android/view/View.html#FOCUS_RIGHT`
- `https://developer.android.com/reference/android/view/View.html#FOCUS_FORWARD`
- `https://developer.android.com/reference/android/view/View.html#FOCUS_BACKWARD`

### ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN = "ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN"
```

Argument for whether when moving at granularity to extend the selection or to move it otherwise.

**Type:** boolean**Actions:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_NEXT_AT_MOVEMENT_GRANULARITY()`, `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_NEXT_AT_MOVEMENT_GRANULARITY()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY()` |   |

### ACTION_ARGUMENT_HTML_ELEMENT_STRING

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_HTML_ELEMENT_STRING = "ACTION_ARGUMENT_HTML_ELEMENT_STRING"
```

Argument for which HTML element to get moving to the next/previous HTML element.

**Type:** String**Actions:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_NEXT_HTML_ELEMENT()`, `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_PREVIOUS_HTML_ELEMENT()`

### ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT = "ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT"
```

Argument for which movement granularity to be used when traversing the node text.

**Type:** int**Actions:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_NEXT_AT_MOVEMENT_GRANULARITY()`, `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY()`

### ACTION_ARGUMENT_MOVE_WINDOW_X

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_MOVE_WINDOW_X = "ACTION_ARGUMENT_MOVE_WINDOW_X"
```

Argument for specifying the x coordinate to which to move a window.

**Type:** int**Actions:**

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_MOVE_WINDOW()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_MOVE_WINDOW()` |   |

### ACTION_ARGUMENT_MOVE_WINDOW_Y

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_MOVE_WINDOW_Y = "ACTION_ARGUMENT_MOVE_WINDOW_Y"
```

Argument for specifying the y coordinate to which to move a window.

**Type:** int**Actions:**

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_MOVE_WINDOW()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_MOVE_WINDOW()` |   |

### ACTION_ARGUMENT_PRESS_AND_HOLD_DURATION_MILLIS_INT

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String ACTION_ARGUMENT_PRESS_AND_HOLD_DURATION_MILLIS_INT = "android.view.accessibility.action.ARGUMENT_PRESS_AND_HOLD_DURATION_MILLIS_INT"
```

Argument to represent the duration in milliseconds to press and hold a node.

**Type:** int**Actions:**

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_PRESS_AND_HOLD()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_PRESS_AND_HOLD()` |   |

### ACTION_ARGUMENT_PROGRESS_VALUE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_PROGRESS_VALUE = "android.view.accessibility.action.ARGUMENT_PROGRESS_VALUE"
```

Argument for specifying the progress value to set.

**Type:** float**Actions:**

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SET_PROGRESS()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SET_PROGRESS()` |   |

### ACTION_ARGUMENT_ROW_INT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_ROW_INT = "android.view.accessibility.action.ARGUMENT_ROW_INT"
```

Argument for specifying the collection row to make visible on screen.

**Type:** int**Actions:**

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_TO_POSITION()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_TO_POSITION()` |   |

### ACTION_ARGUMENT_SCROLL_AMOUNT_FLOAT

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String ACTION_ARGUMENT_SCROLL_AMOUNT_FLOAT = "androidx.core.view.accessibility.action.ARGUMENT_SCROLL_AMOUNT_FLOAT"
```

Argument to represent the scroll amount as a percent of the visible area of a node, with 1.0F as the default. Values smaller than 1.0F represent a partial scroll of the node, and values larger than 1.0F represent a scroll that extends beyond the currently visible node Rect. Setting this to `https://developer.android.com/reference/java/lang/Float.html#POSITIVE_INFINITY` or to another "too large" value should scroll to the end of the node. Negative values should not be used with this argument.

This argument should be used with the following scroll actions:

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_FORWARD()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_BACKWARD()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_UP()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_DOWN()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_LEFT()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_RIGHT()`

Example: if a view representing a list of items implements `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_FORWARD()` to scroll forward by an entire screen (one "page"), then passing a value of .25F via this argument should scroll that view only by 1/4th of a screen. Passing a value of 1.50F via this argument should scroll the view by 1 1/2 screens or to end of the node if the node doesn't extend to 1 1/2 screens.

This argument should not be used with the following scroll actions, which don't cleanly conform to granular scroll semantics:

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_IN_DIRECTION()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_TO_POSITION()`

Views that support this argument should set `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setGranularScrollingSupported(boolean)` to true. Clients should use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isGranularScrollingSupported()` to check if granular scrolling is supported.

### ACTION_ARGUMENT_SELECTION_END_INT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_SELECTION_END_INT = "ACTION_ARGUMENT_SELECTION_END_INT"
```

Argument for specifying the selection end.

**Type:** int**Actions:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_SET_SELECTION()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SET_SELECTION()` |   |

### ACTION_ARGUMENT_SELECTION_PARCELABLE

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final String ACTION_ARGUMENT_SELECTION_PARCELABLE = "android.view.accessibility.action.ARGUMENT_SELECTION_PARCELABLE"
```

Argument for specifying the extended selection.

**Type:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.SelectionCompat`**Actions:**

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SET_EXTENDED_SELECTION()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SET_EXTENDED_SELECTION()` |   |

### ACTION_ARGUMENT_SELECTION_START_INT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_SELECTION_START_INT = "ACTION_ARGUMENT_SELECTION_START_INT"
```

Argument for specifying the selection start.

**Type:** int**Actions:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_SET_SELECTION()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SET_SELECTION()` |   |

### ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE = "ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE"
```

Argument for specifying the text content to set

**Type:** CharSequence**Actions:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_SET_TEXT()`

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SET_TEXT()` |   |

### ACTION_CLEAR_ACCESSIBILITY_FOCUS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_CLEAR_ACCESSIBILITY_FOCUS = 128
```

Action that clears accessibility focus of the node.

### ACTION_CLEAR_FOCUS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_CLEAR_FOCUS = 2
```

Action that unfocuses the node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_CLEAR_FOCUS()` |   |

### ACTION_CLEAR_SELECTION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_CLEAR_SELECTION = 8
```

Action that unselects the node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_CLEAR_SELECTION()` |   |

### ACTION_CLICK

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_CLICK = 16
```

Action that clicks on the node info.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_CLICK()` |   |

### ACTION_COLLAPSE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_COLLAPSE = 524288
```

Action to collapse an expandable node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_COLLAPSE()` |   |

### ACTION_COPY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_COPY = 16384
```

Action to copy the current selection to the clipboard.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_COPY()` |   |

### ACTION_CUT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_CUT = 65536
```

Action to cut the current selection and place it to the clipboard.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_CUT()` |   |

### ACTION_DISMISS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_DISMISS = 1048576
```

Action to dismiss a dismissible node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_DISMISS()` |   |

### ACTION_EXPAND

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_EXPAND = 262144
```

Action to expand an expandable node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_EXPAND()` |   |

### ACTION_FOCUS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_FOCUS = 1
```

Action that focuses the node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_FOCUS()` |   |

### ACTION_LONG_CLICK

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_LONG_CLICK = 32
```

Action that long clicks on the node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_LONG_CLICK()` |   |

### ACTION_NEXT_AT_MOVEMENT_GRANULARITY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_NEXT_AT_MOVEMENT_GRANULARITY = 256
```

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:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT()`\<, `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN()`**Example:** Move to the previous character and do not extend selection.

```javascript
          
              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);
          
        
```

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setMovementGranularities(int)` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getMovementGranularities()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_CHARACTER()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_WORD()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_LINE()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_PARAGRAPH()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_PAGE()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_NEXT_AT_MOVEMENT_GRANULARITY()` |   |

### ACTION_NEXT_HTML_ELEMENT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_NEXT_HTML_ELEMENT = 1024
```

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

**Arguments:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_HTML_ELEMENT_STRING()`**Example:**

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_NEXT_HTML_ELEMENT()` |   |

### ACTION_PASTE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_PASTE = 32768
```

Action to paste the current clipboard content.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_PASTE()` |   |

### ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY = 512
```

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:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT()`\<, `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN()`**Example:** Move to the next character and do not extend selection.

```javascript
          
              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);
          
        
```

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setMovementGranularities(int)` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getMovementGranularities()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_CHARACTER()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_WORD()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_LINE()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_PARAGRAPH()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MOVEMENT_GRANULARITY_PAGE()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY()` |   |

### ACTION_PREVIOUS_HTML_ELEMENT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_PREVIOUS_HTML_ELEMENT = 2048
```

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

**Arguments:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_HTML_ELEMENT_STRING()`**Example:**

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_PREVIOUS_HTML_ELEMENT()` |   |

### ACTION_SCROLL_BACKWARD

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_SCROLL_BACKWARD = 8192
```

Action to scroll the node content backward.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_BACKWARD()` |   |

### ACTION_SCROLL_FORWARD

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_SCROLL_FORWARD = 4096
```

Action to scroll the node content forward.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SCROLL_FORWARD()` |   |

### ACTION_SELECT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_SELECT = 4
```

Action that selects the node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SELECT()` |   |

### ACTION_SET_SELECTION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_SET_SELECTION = 131072
```

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

**Arguments:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SELECTION_START_INT()`, `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SELECTION_END_INT()`**Example:**

```javascript
          
              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);
          
        
```

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SELECTION_START_INT()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SELECTION_END_INT()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SET_SELECTION()` |   |

### ACTION_SET_TEXT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int ACTION_SET_TEXT = 2097152
```

Action that sets the text of the node. Performing the action without argument, using `
null` or empty `https://developer.android.com/reference/java/lang/CharSequence.html` will clear the text. This action will also put the cursor at the end of text.

**Arguments:** `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE()`**Example:**

```javascript
          
              Bundle arguments = new Bundle();
  arguments.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,
      "android");
  info.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments);
          
        
```

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_SET_TEXT()` |   |

### CHECKED_STATE_FALSE

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int CHECKED_STATE_FALSE = 0
```

Checked state for a node that is not checked.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(int)` |   |

### CHECKED_STATE_PARTIAL

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int CHECKED_STATE_PARTIAL = 2
```

Checked state for a node that is partially checked. For example, when a checkbox owns a number of sub-options and they have different states, then the main checkbox is in a partially-checked state.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(int)` |   |

### CHECKED_STATE_TRUE

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int CHECKED_STATE_TRUE = 1
```

Checked state for a node that is checked.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(int)` |   |

### EXPANDED_STATE_COLLAPSED

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int EXPANDED_STATE_COLLAPSED = 1
```

Expanded state for a collapsed expandable element.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setExpandedState(int)` |   |

### EXPANDED_STATE_FULL

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int EXPANDED_STATE_FULL = 3
```

Expanded state for an expanded expandable element that cannot be expanded further.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setExpandedState(int)` |   |

### EXPANDED_STATE_PARTIAL

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int EXPANDED_STATE_PARTIAL = 2
```

Expanded state for an expanded expandable element that can still be expanded further.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setExpandedState(int)` |   |

### EXPANDED_STATE_UNDEFINED

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int EXPANDED_STATE_UNDEFINED = 0
```

Expanded state for a non-expandable element

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setExpandedState(int)` |   |

### EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public static final String EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH = "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH"
```

Integer argument specifying the end index of the requested text location data. Must be positive and no larger than `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH()`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY()` |   |

### EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_MAX_LENGTH

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public static final int EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_MAX_LENGTH = 20000
```

The maximum allowed length of the requested text location data.

### EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public static final String EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX = "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX"
```

Integer argument specifying the start index of the requested text location data. Must be valid inside the CharSequence returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getText()`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY()` |   |

### EXTRA_DATA_TEXT_CHARACTER_LOCATION_IN_WINDOW_KEY

Added in [1.16.0](https://developer.android.com/jetpack/androidx/releases/core#1.16.0)

```
public static final String EXTRA_DATA_TEXT_CHARACTER_LOCATION_IN_WINDOW_KEY = "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_IN_WINDOW_KEY"
```

Key used to request and locate extra data for text character location in window coordinates. This key requests that an array of `https://developer.android.com/reference/android/graphics/RectF.html`s be added to the extras. This request is made with `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html#refreshWithExtraData(java.lang.String, android.os.Bundle)`. The arguments taken by this request are two integers: `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX()` and `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH()`. The starting index must be valid inside the CharSequence returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getText()`, and the length must be positive.

Providers may advertise that they support text characters in window coordinates using `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setAvailableExtraData(java.util.List<java.lang.String>)`. Services may check if an implementation supports text characters in window coordinates with `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getAvailableExtraData()`.

The data can be retrieved from the `Bundle` returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExtras()` using this string as a key for `https://developer.android.com/reference/android/os/Bundle.html#getParcelableArray(java.lang.String, java.lang.Class&lt;T&gt;)`. The `https://developer.android.com/reference/android/graphics/RectF.html` will be `null` for characters that either do not exist or are outside of the window bounds.

Note that character locations in window bounds are not modified by changes in display magnification. {@see android.view.accessibility.AccessibilityNodeInfo#refreshWithExtraData(String, Bundle)}

### EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public static final String EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY = "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_KEY"
```

Key used to request and locate extra data for text character location. This key requests that an array of `https://developer.android.com/reference/android/graphics/RectF.html`s be added to the extras. This request is made with `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html#refreshWithExtraData(java.lang.String, android.os.Bundle)`. The arguments taken by this request are two integers: `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX()` and `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH()`. The starting index must be valid inside the CharSequence returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getText()`, and the length must be positive.

The data can be retrieved from the `Bundle` returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExtras()` using this string as a key for `https://developer.android.com/reference/android/os/Bundle.html#getParcelableArray(java.lang.String)`. The `https://developer.android.com/reference/android/graphics/RectF.html` will be `null` for characters that either do not exist or are off the screen.

Note that character locations returned are modified by changes in display magnification. {@see android.view.accessibility.AccessibilityNodeInfo#refreshWithExtraData(String, Bundle)}

### FLAG_PREFETCH_ANCESTORS

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int FLAG_PREFETCH_ANCESTORS = 1
```

Prefetching strategy that prefetches the ancestors of the requested node.

Ancestors will be prefetched before siblings and descendants.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChild(int,int)` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getParent(int)` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getRoot(int)` |   |
| `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html#getRootInActiveWindow(int)` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getSource(int)` |   |

### FLAG_PREFETCH_DESCENDANTS_BREADTH_FIRST

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int FLAG_PREFETCH_DESCENDANTS_BREADTH_FIRST = 16
```

Prefetching strategy that prefetches the descendants of the requested node breadth-first.

This must not be combined with `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_HYBRID()` or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_DEPTH_FIRST()` or this will trigger an IllegalArgumentException.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_ANCESTORS()` | for where to use these flags. |

### FLAG_PREFETCH_DESCENDANTS_DEPTH_FIRST

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int FLAG_PREFETCH_DESCENDANTS_DEPTH_FIRST = 8
```

Prefetching strategy that prefetches the descendants of the requested node depth-first.

This must not be combined with `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_HYBRID()` or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_BREADTH_FIRST()` or this will trigger an IllegalArgumentException.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_ANCESTORS()` | for where to use these flags. |

### FLAG_PREFETCH_DESCENDANTS_HYBRID

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int FLAG_PREFETCH_DESCENDANTS_HYBRID = 4
```

Prefetching strategy that prefetches the descendants in a hybrid depth first and breadth first approach.

The children of the root node is prefetched before recursing on the children. This must not be combined with `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_DEPTH_FIRST()` or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_BREADTH_FIRST()` or this will trigger an IllegalArgumentException.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_ANCESTORS()` | for where to use these flags. |

### FLAG_PREFETCH_SIBLINGS

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int FLAG_PREFETCH_SIBLINGS = 2
```

Prefetching strategy that prefetches the siblings of the requested node.

To avoid disconnected trees, this flag will also prefetch the parent. Siblings will be prefetched before descendants.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_ANCESTORS()` | for where to use these flags. |

### FLAG_PREFETCH_UNINTERRUPTIBLE

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int FLAG_PREFETCH_UNINTERRUPTIBLE = 32
```

Prefetching flag that specifies prefetching should not be interrupted by a request to retrieve a node or perform an action on a node.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_ANCESTORS()` | for where to use these flags. |

### FOCUS_ACCESSIBILITY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FOCUS_ACCESSIBILITY = 2
```

The accessibility focus.

### FOCUS_INPUT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FOCUS_INPUT = 1
```

The input focus.

### MAX_NUMBER_OF_PREFETCHED_NODES

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int MAX_NUMBER_OF_PREFETCHED_NODES = 50
```

Maximum batch size of prefetched nodes for a request.

### MOVEMENT_GRANULARITY_CHARACTER

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int MOVEMENT_GRANULARITY_CHARACTER = 1
```

Movement granularity bit for traversing the text of a node by character.

### MOVEMENT_GRANULARITY_LINE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int MOVEMENT_GRANULARITY_LINE = 4
```

Movement granularity bit for traversing the text of a node by line.

### MOVEMENT_GRANULARITY_PAGE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int MOVEMENT_GRANULARITY_PAGE = 16
```

Movement granularity bit for traversing the text of a node by page.

### MOVEMENT_GRANULARITY_PARAGRAPH

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int MOVEMENT_GRANULARITY_PARAGRAPH = 8
```

Movement granularity bit for traversing the text of a node by paragraph.

### MOVEMENT_GRANULARITY_WORD

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int MOVEMENT_GRANULARITY_WORD = 2
```

Movement granularity bit for traversing the text of a node by word.

## Public constructors

### AccessibilityNodeInfoCompat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public [AccessibilityNodeInfoCompat](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#AccessibilityNodeInfoCompat(java.lang.Object))(Object info)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#wrap(android.view.accessibility.AccessibilityNodeInfo)` instead.

Creates a new instance wrapping an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/Object.html info` | The info. |

## Public methods

### addAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void addAction(
    AccessibilityNodeInfoCompat.AccessibilityActionCompat action
)
```

Adds an action that can be performed on the node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat action` | The action. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### addAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void addAction(int action)
```

Adds an action that can be performed on the node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `int action` | The action. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### addChild

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void addChild(View child)
```

Adds a child.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html child` | The child. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### addChild

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void addChild(View root, int virtualDescendantId)
```

Adds a virtual child which is a descendant of the given `root`. If `virtualDescendantId` is `https://developer.android.com/reference/android/view/View.html#NO_ID` the root is added as a child.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html root` | The root of the virtual subtree. |
| `int virtualDescendantId` | The id of the virtual child. |

### addLabeledBy

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public void addLabeledBy(@NonNull View label)
```

Adds the view which serves as the label of the view represented by this info for accessibility purposes. When multiple labels are added, the content from each label is combined in the order that they are added.

If visible text can be used to describe or give meaning to this UI, this method is preferred. For example, a TextView before an EditText in the UI usually specifies what information is contained in the EditText. Hence, the EditText is labeled by the TextView.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html label` | A view that labels this node's source. |

### addLabeledBy

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public void addLabeledBy(@NonNull View root, int virtualDescendantId)
```

Adds the view which serves as the label of the view represented by this info for accessibility purposes. If `virtualDescendantId` is `https://developer.android.com/reference/android/view/View.html#NO_ID` the root is set as the label.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report themselves as a tree of virtual views, thus conveying their logical structure.

If visible text can be used to describe or give meaning to this UI, this method is preferred. For example, a TextView before an EditText in the UI usually specifies what information is contained in the EditText. Hence, the EditText is labeled by the TextView.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

**Note:** Starting with Android 36, when multiple labels are added, the content from each label is combined in the order that they are added. Before Android 36, the most recently added label is set as the only label.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html root` | A root whose virtual descendant labels this node's source. |
| `int virtualDescendantId` | The id of the virtual descendant. |

### canOpenPopup

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean canOpenPopup()
```

Gets if this node opens a popup or a dialog.

| Returns |
|---|---|
| `boolean` | If the the node opens a popup. |

### equals

```
public boolean equals(Object obj)
```

### findAccessibilityNodeInfosByText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public List<AccessibilityNodeInfoCompat> findAccessibilityNodeInfosByText(String text)
```

Finds `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html`s by text. The match is case insensitive containment. The search is relative to this info i.e. this info is the root of the traversed tree.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html text` | The searched text. |

| Returns |
|---|---|
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat>` | A list of node info. |

### findAccessibilityNodeInfosByViewId

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public List<AccessibilityNodeInfoCompat> findAccessibilityNodeInfosByViewId(String viewId)
```

Finds `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat`s by the fully qualified view id's resource name where a fully qualified id is of the from "package:id/id_resource_name". For example, if the target application's package is "foo.bar" and the id resource name is "baz", the fully qualified resource id is "foo.bar:id/baz".

**Note:** The primary usage of this API is for UI test automation and in order to report the fully qualified view id if an `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` the client has to set the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo.html#FLAG_REPORT_VIEW_IDS` flag when configuring their `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html viewId` | The fully qualified resource name of the view id to find. |

| Returns |
|---|---|
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat>` | A list of node info. |

### findFocus

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat findFocus(int focus)
```

Find the view that has the specified focus type. The search starts from the view represented by this node info.

| Parameters |
|---|---|
| `int focus` | The focus to find. One of `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FOCUS_INPUT()` or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FOCUS_ACCESSIBILITY()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The node info of the focused view or null. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FOCUS_INPUT()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FOCUS_ACCESSIBILITY()` |   |

### focusSearch

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat focusSearch(int direction)
```

Searches for the nearest view in the specified direction that can take input focus.

| Parameters |
|---|---|
| `int direction` | The direction. Can be one of: `https://developer.android.com/reference/android/view/View.html#FOCUS_DOWN`, `https://developer.android.com/reference/android/view/View.html#FOCUS_UP`, `https://developer.android.com/reference/android/view/View.html#FOCUS_LEFT`, `https://developer.android.com/reference/android/view/View.html#FOCUS_RIGHT`, `https://developer.android.com/reference/android/view/View.html#FOCUS_FORWARD`, `https://developer.android.com/reference/android/view/View.html#FOCUS_BACKWARD`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The node info for the view that can take accessibility focus. |

### getActionList

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public List<AccessibilityNodeInfoCompat.AccessibilityActionCompat> getActionList()
```

Gets the actions that can be performed on the node.

| Returns |
|---|---|
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat>` | A list of AccessibilityActions. |

### getActions

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public int [getActions](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getActions())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getActionList()` instead.

Gets the actions that can be performed on the node.

| Returns |
|---|---|
| `int` | The bit mask of with actions. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html#ACTION_FOCUS` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html#ACTION_CLEAR_FOCUS` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html#ACTION_SELECT` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html#ACTION_CLEAR_SELECTION` |   |

### getAvailableExtraData

Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/core#1.8.0)

```
public @NonNull List<String> getAvailableExtraData()
```

Get the extra data available for this node.

Some data that is useful for some accessibility services is expensive to compute, and would place undue overhead on apps to compute all the time. That data can be requested with `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html#refreshWithExtraData(java.lang.String, android.os.Bundle)`.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html>` | An unmodifiable list of keys corresponding to extra data that can be requested. |

| See also |
|---|---|
| `EXTRA_DATA_RENDERING_INFO_KEY` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY()` |   |

### getBoundsInParent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
public void [getBoundsInParent](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getBoundsInParent(android.graphics.Rect))(Rect outBounds)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getBoundsInScreen(android.graphics.Rect)` instead.

Gets the node bounds in the viewParent's coordinates. `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getParent()` does not represent the source's viewParent. Instead it represents the result of `https://developer.android.com/reference/android/view/View.html#getParentForAccessibility()`, which returns the closest ancestor where `https://developer.android.com/reference/android/view/View.html#isImportantForAccessibility()` is true. So this method is not reliable.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/graphics/Rect.html outBounds` | The output node bounds. |

### getBoundsInScreen

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void getBoundsInScreen(Rect outBounds)
```

Gets the node bounds in screen coordinates.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/graphics/Rect.html outBounds` | The output node bounds. |

### getBoundsInWindow

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public void getBoundsInWindow(@NonNull Rect outBounds)
```

Gets the node bounds in window coordinates.

When magnification is enabled, the bounds in window are scaled up by magnification scale and the positions are also adjusted according to the offset of magnification viewport. For example, it returns Rect(-180, -180, 0, 0) for original bounds Rect(10, 10, 100, 100), when the magnification scale is 2 and offsets for X and Y are both 200.

Compatibility:

- API \<19: No-op

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/graphics/Rect.html outBounds` | The output node bounds. |

### getChecked

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public int getChecked()
```

Gets the checked state of this node.

Note that this is only meaningful when `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isCheckable()` returns `true`.

| Returns |
|---|---|
| `int` | The checked state, one of: - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_FALSE()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_TRUE()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_PARTIAL()` |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setCheckable(boolean)` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isCheckable()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(int)` |   |

### getChild

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat getChild(int index)
```

Get the child at given index.

| Parameters |
|---|---|
| `int index` | The child index. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The child node. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called outside of an AccessibilityService. |

### getChild

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public @Nullable AccessibilityNodeInfoCompat getChild(int index, int prefetchingStrategy)
```

Get the child at given index.

| Parameters |
|---|---|
| `int index` | The child index. |
| `int prefetchingStrategy` | the prefetching strategy. |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The child node. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called outside of an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html` and before calling `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setQueryFromAppProcessEnabled(android.view.View,boolean)`. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getParent(int)` | for a description of prefetching. |

### getChildCount

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public int getChildCount()
```

Gets the number of children.

| Returns |
|---|---|
| `int` | The child count. |

### getClassName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public CharSequence getClassName()
```

Gets the class this node comes from.

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html` | The class name. |

### getCollectionInfo

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat.CollectionInfoCompat getCollectionInfo()
```

Gets the collection info if the node is a collection. A collection child is always a collection item.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionInfoCompat` | The collection info. |

### getCollectionItemInfo

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat.CollectionItemInfoCompat getCollectionItemInfo()
```

Gets the collection item info if the node is a collection item. A collection item is always a child of a collection.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat` | The collection item info. |

### getContainerTitle

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public @Nullable CharSequence getContainerTitle()
```

Returns the container title.

Compatibility:

- API \<19: Returns null

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setContainerTitle(java.lang.CharSequence)` | for details. |

### getContentDescription

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public CharSequence getContentDescription()
```

Gets the content description of this node.

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html` | The content description. |

### getDrawingOrder

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public int getDrawingOrder()
```

Get the drawing order of the view corresponding it this node.

Drawing order is determined only within the node's parent, so this index is only relative to its siblings.

In some cases, the drawing order is essentially simultaneous, so it is possible for two siblings to return the same value. It is also possible that values will be skipped.

| Returns |
|---|---|
| `int` | The drawing position of the view corresponding to this node relative to its siblings. |

### getError

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public CharSequence getError()
```

Gets the error text of this node.

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html` | The error text. |

### getExpandedState

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public int getExpandedState()
```

Gets the expanded state for this node.

| Returns |
|---|---|
| `int` | The expanded state, one of: - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_UNDEFINED()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_COLLAPSED()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_FULL()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_PARTIAL()` |

### getExtraRenderingInfo

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public @Nullable AccessibilityNodeInfo.ExtraRenderingInfo getExtraRenderingInfo()
```

Gets the `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.html` if the node is meant to be refreshed with extra data to examine rendering related accessibility issues.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.html` | The `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.html`. |

### getExtras

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public Bundle getExtras()
```

Gets an optional bundle with extra data. The bundle is lazily created and never `null`.

**Note:** It is recommended to use the package name of your application as a prefix for the keys to avoid collisions which may confuse an accessibility service if the same key has different meaning when emitted from different applications.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/os/Bundle.html` | The bundle. |

### getHintText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @Nullable CharSequence getHintText()
```

Gets the hint text of this node. Only applies to nodes where text can be entered.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | The hint text. |

### getInfo

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public Object [getInfo](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getInfo())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#unwrap()` instead.

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/Object.html` | The wrapped `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html`. |

### getInputType

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public int getInputType()
```

Gets the input type of the source as defined by `https://developer.android.com/reference/android/text/InputType.html`.

| Returns |
|---|---|
| `int` | The input type. |

### getLabelFor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat getLabelFor()
```

Gets the node info for which the view represented by this info serves as a label for accessibility purposes.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The labeled info. |

### getLabeledBy

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public AccessibilityNodeInfoCompat [getLabeledBy](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getLabeledBy())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getLabeledByList()` instead.

Gets the node info which serves as the label of the view represented by this info for accessibility purposes.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The label. |

### getLabeledByList

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public @NonNull List<AccessibilityNodeInfoCompat> getLabeledByList()
```

Gets the list of node infos which serve as the labels of the view represented by this info for accessibility purposes.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat>` | The list of labels in the order that they were added. |

### getLiveRegion

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public int getLiveRegion()
```

Gets the node's live region mode.

A live region is a node that contains information that is important for the user and when it changes the user should be notified. For example, in a login screen with a TextView that displays an "incorrect password" notification, that view should be marked as a live region with mode `https://developer.android.com/reference/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_POLITE()`.

It is the responsibility of the accessibility service to monitor `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` events indicating changes to live region nodes and their children.

| Returns |
|---|---|
| `int` | The live region mode, or `https://developer.android.com/reference/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE()` if the view is not a live region. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/ViewCompat#getAccessibilityLiveRegion(android.view.View)` |   |

### getMaxTextLength

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public int getMaxTextLength()
```

Returns the maximum text length for this node.

| Returns |
|---|---|
| `int` | The maximum text length, or -1 for no limit. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setMaxTextLength(int)` |   |

### getMinDurationBetweenContentChangesMillis

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public long getMinDurationBetweenContentChangesMillis()
```

Gets the minimum time duration between two content change events.

### getMovementGranularities

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public int getMovementGranularities()
```

Gets the movement granularities for traversing the text of this node.

| Returns |
|---|---|
| `int` | The bit mask with granularities. |

### getPackageName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public CharSequence getPackageName()
```

Gets the package this node comes from.

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html` | The package name. |

### getPaneTitle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @Nullable CharSequence getPaneTitle()
```

Get the title of the pane represented by this node.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | The title of the pane represented by this node, or `null` if this node does not represent a pane. |

### getParent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat getParent()
```

Gets the parent.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The parent. |

### getParent

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public @Nullable AccessibilityNodeInfoCompat getParent(int prefetchingStrategy)
```

Gets the parent.

Use `prefetchingStrategy` to determine the types of nodes prefetched from the app if the requested node is not in the cache and must be retrieved by the app. The default strategy for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getParent()` is a combination of ancestor and sibling strategies. The app will prefetch until all nodes fulfilling the strategies are fetched, another node request is sent, or the maximum prefetch batch size of `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#MAX_NUMBER_OF_PREFETCHED_NODES()` nodes is reached. To prevent interruption by another request and to force prefetching of the max batch size, use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_UNINTERRUPTIBLE()`.

| Parameters |
|---|---|
| `int prefetchingStrategy` | the prefetching strategy. |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The parent. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called outside of an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html` and before calling `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setQueryFromAppProcessEnabled(android.view.View,boolean)`. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_ANCESTORS()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_BREADTH_FIRST()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_DEPTH_FIRST()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_DESCENDANTS_HYBRID()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_SIBLINGS()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#FLAG_PREFETCH_UNINTERRUPTIBLE()` |   |

### getRangeInfo

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat.RangeInfoCompat getRangeInfo()
```

Gets the range info if this node is a range.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.RangeInfoCompat` | The range. |

### getRoleDescription

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @Nullable CharSequence getRoleDescription()
```

Gets the custom role description.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | The role description. |

### getSelection

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public @Nullable AccessibilityNodeInfoCompat.SelectionCompat getSelection()
```

Gets the selection of this node.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.SelectionCompat` | The selection, or `null` if the node has no selection. Compatibility: - API \<: 36.1: Always returns `null` |

### getStateDescription

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public @Nullable CharSequence getStateDescription()
```

Gets the state description of this node.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | the state description or null if android version smaller than 19. |

### getStructuredDataInfo

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public @Nullable AccessibilityNodeInfoCompat.StructuredDataInfoCompat getStructuredDataInfo()
```

Gets additional structured data properties of this node. This is only populated for nodes that offer additional structured data, like a mathematical expression.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat` | A subclass of `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat` representing the type and additional structured data for this node, or `null` if this node does not have additional structured data attached. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setStructuredDataInfo(androidx.core.view.accessibility.AccessibilityNodeInfoCompat.StructuredDataInfoCompat)` | Compatibility: - API \<: 36.1: Always returns `null` |

### getSupplementalDescription

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public @Nullable CharSequence getSupplementalDescription()
```

Returns the supplemental description of this `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat`.

A supplemental description provides brief supplemental information for this node, such as the purpose of the node when that purpose is not conveyed within its textual representation. For example, if a dropdown select has a purpose of setting font family, the supplemental description could be "font family". If this node has children, its supplemental description serves as additional information and is not intended to replace any existing information in the subtree. This is different from the `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getContentDescription()` in that this description is purely supplemental while a content description may be used to replace a description for a node or its subtree that an assistive technology would otherwise compute based on other properties of the node and its descendants.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | The supplemental description. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSupplementalDescription(java.lang.CharSequence)` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getContentDescription()` |   |

### getText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public CharSequence getText()
```

Gets the text of this node.

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html` | The text. |

### getTextSelectionEnd

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public int getTextSelectionEnd()
```

Gets the text selection end.

| Returns |
|---|---|
| `int` | The text selection end if there is selection or -1. |

### getTextSelectionStart

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public int getTextSelectionStart()
```

Gets the text selection start.

| Returns |
|---|---|
| `int` | The text selection start if there is selection or -1. |

### getTooltipText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @Nullable CharSequence getTooltipText()
```

Gets the tooltip text of this node.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | The tooltip text. |

### getTouchDelegateInfo

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
public @Nullable AccessibilityNodeInfoCompat.TouchDelegateInfoCompat getTouchDelegateInfo()
```

Get the `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat` for touch delegate behavior with the represented view. It is possible for the same node to be pointed to by several regions. Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat#getRegionAt(int)` to get touch delegate target `https://developer.android.com/reference/android/graphics/Region.html`, and `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat#getTargetForRegion(android.graphics.Region)` for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` from the given region.

Compatibility:

- API \<29: Always returns `null`

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat` or `null` if there are no touch delegates in this node. |

### getTraversalAfter

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat getTraversalAfter()
```

Gets the node after which this one is visited in accessibility traversal. A screen-reader must visit the content of the other node before the content of this one.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The succeeding node if such or `null`. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTraversalAfter(android.view.View)` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTraversalAfter(android.view.View,int)` |   |

### getTraversalBefore

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfoCompat getTraversalBefore()
```

Gets the node before which this one is visited during traversal. A screen-reader must visit the content of this node before the content of the one it precedes.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | The succeeding node if such or `null`. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTraversalBefore(android.view.View)` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setTraversalBefore(android.view.View,int)` |   |

### getUniqueId

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public @Nullable String getUniqueId()
```

Gets the unique id of this node.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | the unique id or null if android version smaller than 19. |

### getViewIdResourceName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public String getViewIdResourceName()
```

Gets the fully qualified resource name of the source view's id.

**Note:** The primary usage of this API is for UI test automation and in order to report the source view id of an `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` the client has to set the `https://developer.android.com/reference/androidx/core/accessibilityservice/AccessibilityServiceInfoCompat#FLAG_REPORT_VIEW_IDS()` flag when configuring their `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`.

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html` | The id resource name. |

### getWindow

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityWindowInfoCompat getWindow()
```

Gets the window to which this node belongs.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityWindowInfoCompat` | The window. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html#getWindows()` |   |

### getWindowId

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public int getWindowId()
```

Gets the id of the window from which the info comes from.

| Returns |
|---|---|
| `int` | The window id. |

### hasRequestInitialAccessibilityFocus

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public boolean hasRequestInitialAccessibilityFocus()
```

Gets whether the node has `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setRequestInitialAccessibilityFocus(boolean)`.

| Returns |
|---|---|
| `boolean` | True if the node has requested initial accessibility focus. |

### hashCode

```
public int hashCode()
```

### isAccessibilityDataSensitive

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public boolean isAccessibilityDataSensitive()
```

Gets if the node's accessibility data is considered sensitive.

| Returns |
|---|---|
| `boolean` | True if the node's data is considered sensitive, false otherwise. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#isAccessibilityDataSensitive()` |   |

### isAccessibilityFocused

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isAccessibilityFocused()
```

Gets whether this node is accessibility focused.

| Returns |
|---|---|
| `boolean` | True if the node is accessibility focused. |

### isCheckable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isCheckable()
```

Gets whether this node is checkable.

| Returns |
|---|---|
| `boolean` | True if the node is checkable. |

### isChecked

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public boolean [isChecked](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isChecked())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()` instead.

Gets whether this node is checked.

| Returns |
|---|---|
| `boolean` | True if the node is checked. |

### isClickable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isClickable()
```

Gets whether this node is clickable.

| Returns |
|---|---|
| `boolean` | True if the node is clickable. |

### isContentInvalid

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isContentInvalid()
```

Gets if the content of this node is invalid. For example, a date is not well-formed.

| Returns |
|---|---|
| `boolean` | If the node content is invalid. |

### isContextClickable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isContextClickable()
```

Gets whether this node is context clickable.

| Returns |
|---|---|
| `boolean` | True if the node is context clickable. |

### isDismissable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isDismissable()
```

Gets if the node can be dismissed.

| Returns |
|---|---|
| `boolean` | If the node can be dismissed. |

### isEditable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isEditable()
```

Gets if the node is editable.

| Returns |
|---|---|
| `boolean` | True if the node is editable, false otherwise. |

### isEnabled

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isEnabled()
```

Gets whether this node is enabled.

| Returns |
|---|---|
| `boolean` | True if the node is enabled. |

### isFieldRequired

Added in [1.16.0](https://developer.android.com/jetpack/androidx/releases/core#1.16.0)

```
public boolean isFieldRequired()
```

Gets whether a node representing a form field requires input or selection.

| Returns |
|---|---|
| `boolean` | `true` if `this` node represents a form field that requires input or selection, `false` otherwise. |

### isFocusable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isFocusable()
```

Gets whether this node is focusable.

| Returns |
|---|---|
| `boolean` | True if the node is focusable. |

### isFocused

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isFocused()
```

Gets whether this node is focused.

| Returns |
|---|---|
| `boolean` | True if the node is focused. |

### isGranularScrollingSupported

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public boolean isGranularScrollingSupported()
```

Gets if the node supports granular scrolling.

Compatibility:

- Api \<19: Returns false.

| Returns |
|---|---|
| `boolean` | True if all scroll actions that could support `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SCROLL_AMOUNT_FLOAT()` have done so, false otherwise. |

### isHeading

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isHeading()
```

Returns whether node represents a heading.

**Note:** Returns `true` if either `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setHeading(boolean)` marks this node as a heading or if the node has a `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat` that marks it as such, to accommodate apps that use the now-deprecated API.

| Returns |
|---|---|
| `boolean` | `true` if the node is a heading, `false` otherwise. |

### isImportantForAccessibility

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isImportantForAccessibility()
```

Returns whether the node originates from a view considered important for accessibility.

| Returns |
|---|---|
| `boolean` | `true` if the node originates from a view considered important for accessibility, `false` otherwise |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#isImportantForAccessibility()` |   |

### isLongClickable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isLongClickable()
```

Gets whether this node is long clickable.

| Returns |
|---|---|
| `boolean` | True if the node is long clickable. |

### isMultiLine

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isMultiLine()
```

Gets if the node is a multi line editable text.

| Returns |
|---|---|
| `boolean` | True if the node is multi line. |

### isPassword

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isPassword()
```

Gets whether this node is a password.

| Returns |
|---|---|
| `boolean` | True if the node is a password. |

### isScreenReaderFocusable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isScreenReaderFocusable()
```

Returns whether the node is explicitly marked as a focusable unit by a screen reader. Note that `false` indicates that it is not explicitly marked, not that the node is not a focusable unit. Screen readers should generally use other signals, such as `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isFocusable()`, or the presence of text in a node, to determine what should receive focus.

| Returns |
|---|---|
| `boolean` | `true` if the node is specifically marked as a focusable unit for screen readers, `false` otherwise. |

### isScrollable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isScrollable()
```

Gets if the node is scrollable.

| Returns |
|---|---|
| `boolean` | True if the node is scrollable, false otherwise. |

### isSelected

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isSelected()
```

Gets whether this node is selected.

| Returns |
|---|---|
| `boolean` | True if the node is selected. |

### isShowingHintText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isShowingHintText()
```

Returns whether the node's text represents a hint for the user to enter text. It should only be `true` if the node has editable text.

| Returns |
|---|---|
| `boolean` | `true` if the text in the node represents a hint to the user, `false` otherwise. |

### isTextEntryKey

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isTextEntryKey()
```

Returns whether node represents a text entry key that is part of a keyboard or keypad.

| Returns |
|---|---|
| `boolean` | `true` if the node is a text entry key, `false` otherwise. |

### isTextSelectable

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public boolean isTextSelectable()
```

Gets if the node has selectable text.

Services should use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_SET_SELECTION()` for selection. Editable text nodes must also be selectable. But not all UIs will populate this field, so services should consider 'isTextSelectable \| isEditable' to ensure they don't miss nodes with selectable text.

Compatibility:

- Api \<19: Returns false.

| Returns |
|---|---|
| `boolean` | True if the node has selectable text. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isEditable()` |   |

### isVisibleToUser

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isVisibleToUser()
```

Gets whether this node is visible to the user.

| Returns |
|---|---|
| `boolean` | Whether the node is visible to the user. |

### obtain

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static AccessibilityNodeInfoCompat obtain()
```

Returns a cached instance if such is available otherwise a new one.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | An instance. |

### obtain

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static AccessibilityNodeInfoCompat obtain(AccessibilityNodeInfoCompat info)
```

Returns a cached instance if such is available or a new one is create. The returned instance is initialized from the given `info`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat info` | The other info. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | An instance. |

### obtain

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static AccessibilityNodeInfoCompat obtain(View source)
```

Returns a cached instance if such is available otherwise a new one and sets the source.

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | An instance. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSource(android.view.View)` |   |

### obtain

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static AccessibilityNodeInfoCompat obtain(View root, int virtualDescendantId)
```

Returns a cached instance if such is available otherwise a new one and sets the source.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html root` | The root of the virtual subtree. |
| `int virtualDescendantId` | The id of the virtual descendant. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` | An instance. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSource(android.view.View,int)` |   |

### performAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean performAction(int action)
```

Performs an action on the node.

**Note:** An action can be performed only if the request is made from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`.

| Parameters |
|---|---|
| `int action` | The action to perform. |

| Returns |
|---|---|
| `boolean` | True if the action was performed. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called outside of an AccessibilityService. |

### performAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean performAction(int action, Bundle arguments)
```

Performs an action on the node.

**Note:** An action can be performed only if the request is made from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`.

| Parameters |
|---|---|
| `int action` | The action to perform. |
| `https://developer.android.com/reference/android/os/Bundle.html arguments` | A bundle with additional arguments. |

| Returns |
|---|---|
| `boolean` | True if the action was performed. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called outside of an AccessibilityService. |

### recycle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public void [recycle](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#recycle())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Accessibility Object recycling is no longer necessary or functional.

Return an instance back to be reused.

**Note:** You must not touch the object after calling this function.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If the info is already recycled. |

### refresh

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean refresh()
```

Refreshes this info with the latest state of the view it represents.

**Note:** If this method returns false this info is obsolete since it represents a view that is no longer in the view tree.

| Returns |
|---|---|
| `boolean` | Whether the refresh succeeded. |

### removeAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean removeAction(
    AccessibilityNodeInfoCompat.AccessibilityActionCompat action
)
```

Removes an action that can be performed on the node. If the action was not already added to the node, calling this method has no effect.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat action` | The action to be removed. |

| Returns |
|---|---|
| `boolean` | The action removed from the list of actions. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### removeChild

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean removeChild(View child)
```

Removes a child. If the child was not previously added to the node, calling this method has no effect.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html child` | The child. |

| Returns |
|---|---|
| `boolean` | true if the child was present |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### removeChild

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean removeChild(View root, int virtualDescendantId)
```

Removes a virtual child which is a descendant of the given `root`. If the child was not previously added to the node, calling this method has no effect.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html root` | The root of the virtual subtree. |
| `int virtualDescendantId` | The id of the virtual child. |

| Returns |
|---|---|
| `boolean` | true if the child was present |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addChild(android.view.View,int)` |   |

### removeLabeledBy

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public boolean removeLabeledBy(@NonNull View label)
```

Removes a label. If the label was not previously added to the node, calling this method has no effect.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

**Note:** If the Android version is less than 36, this method has no effect; call `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLabeledBy(android.view.View)` with `null` to remove the current label.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html label` | The node which serves as this node's label. |

| Returns |
|---|---|
| `boolean` | true if the label was present |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addLabeledBy(android.view.View)` |   |

### removeLabeledBy

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public boolean removeLabeledBy(@NonNull View root, int virtualDescendantId)
```

Removes a label which is a virtual descendant of the given `root`. If `virtualDescendantId` is `https://developer.android.com/reference/android/view/View.html#NO_ID` the root is set as the label. If the label was not previously added to the node, calling this method has no effect.

**Note:** If the Android version is less than 36, this method has no effect; call `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLabeledBy(android.view.View)` with `null` to remove the current label.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html root` | The root of the virtual subtree. |
| `int virtualDescendantId` | The id of the virtual node which serves as this node's label. |

| Returns |
|---|---|
| `boolean` | true if the label was present |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addLabeledBy(android.view.View,int)` |   |

### setAccessibilityDataSensitive

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public void setAccessibilityDataSensitive(boolean accessibilityDataSensitive)
```

Sets whether this node's accessibility data is considered sensitive.

For SDK 34 and higher: when set to true the framework will hide this node from accessibility services with the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo.html#isAccessibilityTool()` property set to false.

Otherwise, for SDK 19 and higher: the framework cannot hide this node but this property may be read by accessibility services to provide modified behavior for sensitive nodes.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean accessibilityDataSensitive` | True if the node's accessibility data is considered sensitive. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setAccessibilityFocused

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setAccessibilityFocused(boolean focused)
```

Sets whether this node is accessibility focused.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean focused` | True if the node is accessibility focused. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setAvailableExtraData

Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/core#1.8.0)

```
public void setAvailableExtraData(@NonNull List<String> extraDataKeys)
```

Set the extra data available for this node.

**Note:** When a `View` passes in a non-empty list, it promises that it will populate the node's extras with corresponding pieces of information in `https://developer.android.com/reference/android/view/View.html#addExtraDataToAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo, java.lang.String, android.os.Bundle)`.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html> extraDataKeys` | A list of types of extra data that are available. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getAvailableExtraData()` |   |

### setBoundsInParent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
public void [setBoundsInParent](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setBoundsInParent(android.graphics.Rect))(Rect bounds)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Accessibility services should not care about these bounds.

Sets the node bounds in the viewParent's coordinates. `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getParent()` does not represent the source's viewParent. Instead it represents the result of `https://developer.android.com/reference/android/view/View.html#getParentForAccessibility()`, which returns the closest ancestor where `https://developer.android.com/reference/android/view/View.html#isImportantForAccessibility()` is true. So this method is not reliable.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/graphics/Rect.html bounds` | The node bounds. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setBoundsInScreen

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setBoundsInScreen(Rect bounds)
```

Sets the node bounds in screen coordinates.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/graphics/Rect.html bounds` | The node bounds. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setBoundsInWindow

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public void setBoundsInWindow(@NonNull Rect bounds)
```

Sets the node bounds in window coordinates.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

Compatibility:

- API \<19: No-op

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/graphics/Rect.html bounds` | The node bounds. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setCanOpenPopup

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setCanOpenPopup(boolean opensPopup)
```

Sets if this node opens a popup or a dialog.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean opensPopup` | If the the node opens a popup. |

### setCheckable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setCheckable(boolean checkable)
```

Sets whether this node is checkable.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean checkable` | True if the node is checkable. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setChecked

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public void [setChecked](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(boolean))(boolean checked)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(int)` instead.

Sets whether this node is checked.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean checked` | True if the node is checked. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setChecked

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public void setChecked(int checked)
```

Sets the checked state of this node. This is only meaningful when `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isCheckable()` returns `true`.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `int checked` | The checked state. One of - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_FALSE()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_TRUE()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_PARTIAL()` |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if `checked` is not one of `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_FALSE()`, `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_TRUE()`, or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#CHECKED_STATE_PARTIAL()`. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setCheckable(boolean)` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isCheckable()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()` |   |

### setClassName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setClassName(CharSequence className)
```

Sets the class this node comes from.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html className` | The class name. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setClickable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setClickable(boolean clickable)
```

Sets whether this node is clickable.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean clickable` | True if the node is clickable. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setCollectionInfo

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setCollectionInfo(Object collectionInfo)
```

### setCollectionItemInfo

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setCollectionItemInfo(Object collectionItemInfo)
```

### setContainerTitle

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public void setContainerTitle(@Nullable CharSequence containerTitle)
```

Sets the container title for app-developer-defined container which can be any type of ViewGroup or layout. Container title will be used to group together related controls, similar to HTML fieldset. Or container title may identify a large piece of the UI that is visibly grouped together, such as a toolbar or a card, etc.

Container title helps to assist in navigation across containers and other groups. For example, a screen reader may use this to determine where to put accessibility focus.

Container title is different from pane title`https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setPaneTitle(java.lang.CharSequence)` which indicates that the node represents a window or activity.

Example: An app can set container titles on several non-modal menus, containing TextViews or ImageButtons that have content descriptions, text, etc. Screen readers can quickly switch accessibility focus among menus instead of child views. Other accessibility-services can easily find the menu.

Compatibility:

- API \<19: No-op

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html containerTitle` | The container title that is associated with a ViewGroup/Layout on the screen. |

### setContentDescription

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setContentDescription(CharSequence contentDescription)
```

Sets the content description of this node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html contentDescription` | The content description. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setContentInvalid

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setContentInvalid(boolean contentInvalid)
```

Sets if the content of this node is invalid. For example, a date is not well-formed.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean contentInvalid` | If the node content is invalid. |

### setContextClickable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setContextClickable(boolean contextClickable)
```

Sets whether this node is context clickable.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean contextClickable` | True if the node is context clickable. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setDismissable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setDismissable(boolean dismissable)
```

Sets if the node can be dismissed.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean dismissable` | If the node can be dismissed. |

### setDrawingOrder

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setDrawingOrder(int drawingOrderInParent)
```

Set the drawing order of the view corresponding it this node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `int drawingOrderInParent` |   |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setEditable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setEditable(boolean editable)
```

Sets whether this node is editable.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean editable` | True if the node is editable. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setEnabled

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setEnabled(boolean enabled)
```

Sets whether this node is enabled.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean enabled` | True if the node is enabled. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setError

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setError(CharSequence error)
```

Sets the error text of this node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html error` | The error text. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setExpandedState

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public void setExpandedState(int state)
```

Sets the expanded state of the node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`.

| Parameters |
|---|---|
| `int state` | new expanded state of this node. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | If state is not one of: - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_UNDEFINED()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_COLLAPSED()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_PARTIAL()` - `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#EXPANDED_STATE_FULL()` |
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService |

### setFieldRequired

Added in [1.16.0](https://developer.android.com/jetpack/androidx/releases/core#1.16.0)

```
public void setFieldRequired(boolean required)
```

Sets whether `this` node represents a form field that requires input or selection.

**Note:** Cannot be called from an AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean required` | `true` if input or selection of this node should be required, ` false` otherwise. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService |

### setFocusable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setFocusable(boolean focusable)
```

Sets whether this node is focusable.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean focusable` | True if the node is focusable. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setFocused

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setFocused(boolean focused)
```

Sets whether this node is focused.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean focused` | True if the node is focused. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setGranularScrollingSupported

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public void setGranularScrollingSupported(boolean granularScrollingSupported)
```

Sets if the node supports granular scrolling. This should be set to true if all scroll actions which could support `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ARGUMENT_SCROLL_AMOUNT_FLOAT()` have done so.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

Compatibility:

- Api \<19: No-op.

| Parameters |
|---|---|
| `boolean granularScrollingSupported` | True if the node supports granular scrolling, false otherwise. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setHeading

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setHeading(boolean isHeading)
```

Sets whether the node represents a heading.

This method has no effect below API 19

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean isHeading` | `true` if the node is a heading, `false` otherwise. |

### setHintText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setHintText(@Nullable CharSequence hintText)
```

Sets the hint text of this node. Only applies to nodes where text can be entered.

This method has no effect below API 19

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html hintText` | The hint text for this mode. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setImportantForAccessibility

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setImportantForAccessibility(boolean important)
```

Sets whether the node is considered important for accessibility.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean important` | `true` if the node is considered important for accessibility, `false` otherwise |

### setInputType

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setInputType(int inputType)
```

Sets the input type of the source as defined by `https://developer.android.com/reference/android/text/InputType.html`.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `int inputType` | The input type. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setLabelFor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setLabelFor(View labeled)
```

Sets the view for which the view represented by this info serves as a label for accessibility purposes.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html labeled` | The view for which this info serves as a label. |

### setLabelFor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setLabelFor(View root, int virtualDescendantId)
```

Sets the view for which the view represented by this info serves as a label for accessibility purposes. If `virtualDescendantId` is `https://developer.android.com/reference/android/view/View.html#NO_ID` the root is set as the labeled.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report themselves as a tree of virtual views, thus conveying their logical structure.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html root` | The root whose virtual descendant serves as a label. |
| `int virtualDescendantId` | The id of the virtual descendant. |

### setLabeledBy

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public void [setLabeledBy](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLabeledBy(android.view.View))(View label)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addLabeledBy(android.view.View)` or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#removeLabeledBy(android.view.View)` instead.

Sets the view which serves as the label of the view represented by this info for accessibility purposes.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html label` | The view that labels this node's source. |

### setLabeledBy

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public void [setLabeledBy](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setLabeledBy(android.view.View,int))(View root, int virtualDescendantId)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#addLabeledBy(android.view.View,int)` or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#removeLabeledBy(android.view.View,int)` instead.

Sets the view which serves as the label of the view represented by this info for accessibility purposes. If `virtualDescendantId` is `https://developer.android.com/reference/android/view/View.html#NO_ID` the root is set as the label.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report themselves as a tree of virtual views, thus conveying their logical structure.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html root` | The root whose virtual descendant labels this node's source. |
| `int virtualDescendantId` | The id of the virtual descendant. |

### setLiveRegion

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setLiveRegion(int mode)
```

Sets the node's live region mode.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `int mode` | The live region mode, or `https://developer.android.com/reference/androidx/core/view/ViewCompat#ACCESSIBILITY_LIVE_REGION_NONE()` if the view is not a live region. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/ViewCompat#setAccessibilityLiveRegion(android.view.View,int)` |   |

### setLongClickable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setLongClickable(boolean longClickable)
```

Sets whether this node is long clickable.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean longClickable` | True if the node is long clickable. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setMaxTextLength

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setMaxTextLength(int max)
```

Sets the maximum text length, or -1 for no limit.

Typically used to indicate that an editable text field has a limit on the number of characters entered.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `int max` | The maximum text length. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getMaxTextLength()` |   |

### setMinDurationBetweenContentChangesMillis

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public void setMinDurationBetweenContentChangesMillis(long duration)
```

Sets the minimum time duration between two content change events, which is used in throttling content change events in accessibility services.

Example: An app can set MinDurationBetweenContentChanges as 1 min for a view which sends content change events to accessibility services one event per second. Accessibility service will throttle those content change events and only handle one event per minute for that view.

| Parameters |
|---|---|
| `long duration` | the minimum duration between content change events. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getContentChangeTypes(android.view.accessibility.AccessibilityEvent)` | for all content change types. |

### setMovementGranularities

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setMovementGranularities(int granularities)
```

Sets the movement granularities for traversing the text of this node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `int granularities` | The bit mask with granularities. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setMultiLine

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setMultiLine(boolean multiLine)
```

Sets if the node is a multi line editable text.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean multiLine` | True if the node is multi line. |

### setPackageName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setPackageName(CharSequence packageName)
```

Sets the package this node comes from.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html packageName` | The package name. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setPaneTitle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setPaneTitle(@Nullable CharSequence paneTitle)
```

If this node represents a visually distinct region of the screen that may update separately from the rest of the window, it is considered a pane. Set the pane title to indicate that the node is a pane, and to provide a title for it.

This method has no effect below API 19

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html paneTitle` | The title of the window represented by this node. |

### setParent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setParent(View parent)
```

Sets the parent.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html parent` | The parent. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setParent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setParent(View root, int virtualDescendantId)
```

Sets the parent to be a virtual descendant of the given `root`. If `virtualDescendantId` equals to `https://developer.android.com/reference/android/view/View.html#NO_ID` the root is set as the parent.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

This method is not supported on devices running API level \<16 since the platform did not support virtual descendants of real views.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html root` | The root of the virtual subtree. |
| `int virtualDescendantId` | The id of the virtual descendant. |

### setPassword

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setPassword(boolean password)
```

Sets whether this node is a password.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean password` | True if the node is a password. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setQueryFromAppProcessEnabled

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public void setQueryFromAppProcessEnabled(@NonNull View view, boolean enabled)
```

Connects this node to the View's root so that operations on this node can query the entire `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` tree and perform accessibility actions on nodes.

Testing or debugging tools should create this `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` node using `https://developer.android.com/reference/androidx/core/view/ViewCompat#onInitializeAccessibilityNodeInfo(android.view.View,androidx.core.view.accessibility.AccessibilityNodeInfoCompat)` or `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeProviderCompat` and call this method, then navigate and interact with the node tree by calling methods on the node. Calling this method more than once on the same node is a no-op. After calling this method, all nodes linked to this node (children, ancestors, etc.) are also queryable.

Here "query" refers to the following node operations:

- check properties of this node (example: `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isScrollable()`)
- find and query children (example: `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChild(int)`)
- find and query the parent (example: `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getParent()`)
- find focus (examples: `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#findFocus(int)`, `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#focusSearch(int)`)
- find and query other nodes (example: `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#findAccessibilityNodeInfosByText(java.lang.String)`, `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#findAccessibilityNodeInfosByViewId(java.lang.String)`)
- perform actions (example: `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#performAction(int)`)

This is intended for short-lived inspections from testing or debugging tools in the app process, as operations on this node tree will only succeed as long as the associated view hierarchy remains attached to a window. `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat` objects can quickly become out of sync with their corresponding `https://developer.android.com/reference/android/view/View.html` objects; if you wish to inspect a changed or different view hierarchy then create a new node from any view in that hierarchy and call this method on that new node, instead of disabling \&re-enabling the connection on the previous node.

Compatibility:

- API \<34: No-op

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html view` | The view that generated this node, or any view in the same view-root hierarchy. |
| `boolean enabled` | Whether to enable (true) or disable (false) querying from the app process. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`, or if provided a `https://developer.android.com/reference/android/view/View.html` that is not attached to a window. |

### setRangeInfo

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setRangeInfo(AccessibilityNodeInfoCompat.RangeInfoCompat rangeInfo)
```

Sets the range info if this node is a range.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.RangeInfoCompat rangeInfo` | The range info. |

### setRequestInitialAccessibilityFocus

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public void setRequestInitialAccessibilityFocus(
    boolean requestInitialAccessibilityFocus
)
```

Sets whether the node has requested initial accessibility focus.

If the node `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#hasRequestInitialAccessibilityFocus()`, this node would be one of candidates to be accessibility focused when the window appears.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean requestInitialAccessibilityFocus` | True if the node requests to receive initial accessibility focus. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setRoleDescription

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setRoleDescription(@Nullable CharSequence roleDescription)
```

Sets the custom role description.

The role description allows you to customize the name for the view's semantic role. For example, if you create a custom subclass of `https://developer.android.com/reference/android/view/View.html` to display a menu bar, you could assign it the role description of "menu bar".

**Warning:** For consistency with other applications, you should not use the role description to force accessibility services to describe standard views (such as buttons or checkboxes) using specific wording. For example, you should not set a role description of "check box" or "tick box" for a standard `https://developer.android.com/reference/android/widget/CheckBox.html`. Instead let accessibility services decide what feedback to provide.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html roleDescription` | The role description. |

### setScreenReaderFocusable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setScreenReaderFocusable(boolean screenReaderFocusable)
```

Sets whether the node should be considered a focusable unit by a screen reader.

This method has no effect below API 19

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean screenReaderFocusable` | `true` if the node is a focusable unit for screen readers, `false` otherwise. |

### setScrollable

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setScrollable(boolean scrollable)
```

Sets if the node is scrollable.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean scrollable` | True if the node is scrollable, false otherwise. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setSelected

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setSelected(boolean selected)
```

Sets whether this node is selected.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean selected` | True if the node is selected. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setSelection

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public void setSelection(
    @Nullable AccessibilityNodeInfoCompat.SelectionCompat selection
)
```

Sets the selection of this node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.SelectionCompat selection` | The selection, or `null` to clear the selection. Compatibility: - API \<: 36.1: Do nothing |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setShowingHintText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setShowingHintText(boolean showingHintText)
```

Sets whether the node's text represents a hint for the user to enter text. It should only be `true` if the node has editable text.

This method has no effect below API 19

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean showingHintText` | `true` if the text in the node represents a hint to the user, `false` otherwise. |

### setSource

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setSource(View source)
```

Sets the source.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html source` | The info source. |

### setSource

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setSource(View root, int virtualDescendantId)
```

Sets the source to be a virtual descendant of the given `root`. If `virtualDescendantId` is `https://developer.android.com/reference/android/view/View.html#NO_ID` the root is set as the source.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report themselves as a tree of virtual views, thus conveying their logical structure.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

This method is not supported on devices running API level \<16 since the platform did not support virtual descendants of real views.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html root` | The root of the virtual subtree. |
| `int virtualDescendantId` | The id of the virtual descendant. |

### setStateDescription

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public void setStateDescription(@Nullable CharSequence stateDescription)
```

Sets the state description of this node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html stateDescription` | the state description of this node. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setStructuredDataInfo

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public void setStructuredDataInfo(
    @Nullable AccessibilityNodeInfoCompat.StructuredDataInfoCompat structuredDataInfoCompat
)
```

Sets additional structured data properties of this node, such as for a mathematical expression.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat structuredDataInfoCompat` | The `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat` object (e.g., an instance of `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.MathInfoCompat`) describing the node. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getStructuredDataInfo()` | Compatibility: - API \<: 36.1: Do nothing |

### setSupplementalDescription

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public void setSupplementalDescription(
    @Nullable CharSequence supplementalDescription
)
```

Sets the supplemental description of this `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat`.

A supplemental description provides brief supplemental information for this node, such as the purpose of the node when that purpose is not conveyed within its textual representation. For example, if a dropdown select has a purpose of setting font family, the supplemental description could be "font family". If this node has children, its supplemental description serves as additional information and is not intended to replace any existing information in the subtree. This is different from the `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setContentDescription(java.lang.CharSequence)` in that this description is purely supplemental while a content description may be used to replace a description for a node or its subtree that an assistive technology would otherwise compute based on other properties of the node and its descendants.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html supplementalDescription` | The supplemental description. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getSupplementalDescription()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setContentDescription(java.lang.CharSequence)` |   |

### setText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setText(CharSequence text)
```

Sets the text of this node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html text` | The text. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setTextEntryKey

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setTextEntryKey(boolean isTextEntryKey)
```

Sets whether the node represents a text entry key that is part of a keyboard or keypad.

This method has no effect below API 19

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean isTextEntryKey` | `true` if the node is a text entry key, `false` otherwise. |

### setTextSelectable

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public void setTextSelectable(boolean selectableText)
```

Sets if the node has selectable text.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

Compatibility:

- Api \<19: Does not operate.

| Parameters |
|---|---|
| `boolean selectableText` | True if the node has selectable text, false otherwise. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setTextSelection

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setTextSelection(int start, int end)
```

Sets the text selection start and end.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `int start` | The text selection start. |
| `int end` | The text selection end. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setTooltipText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setTooltipText(@Nullable CharSequence tooltipText)
```

Sets the tooltip text of this node.

This method has no effect below API 19

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html tooltipText` | The tooltip text. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setTouchDelegateInfo

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
public void setTouchDelegateInfo(
    @NonNull AccessibilityNodeInfoCompat.TouchDelegateInfoCompat delegatedInfo
)
```

Set touch delegate info if the represented view has a `https://developer.android.com/reference/android/view/TouchDelegate.html`.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

Compatibility:

- API \<29: No-op

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat delegatedInfo` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.TouchDelegateInfoCompat` |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setTraversalAfter

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setTraversalAfter(View view)
```

Sets the view whose node is visited after this one in accessibility traversal. A screen-reader must visit the content of the other node before the content of this one.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html view` | The previous view. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getTraversalAfter()` |   |

### setTraversalAfter

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setTraversalAfter(View root, int virtualDescendantId)
```

Sets the node after which this one is visited in accessibility traversal. A screen-reader must visit the content of the other node before the content of this one. If `virtualDescendantId` equals to `https://developer.android.com/reference/android/view/View.html#NO_ID` the root is set as the predecessor.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html root` | The root of the virtual subtree. |
| `int virtualDescendantId` | The id of the virtual descendant. |

### setTraversalBefore

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setTraversalBefore(View view)
```

Sets the view before whose node this one should be visited during traversal. A screen-reader must visit the content of this node before the content of the one it precedes.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html view` | The view providing the preceding node. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getTraversalBefore()` |   |

### setTraversalBefore

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setTraversalBefore(View root, int virtualDescendantId)
```

Sets the node before which this one is visited during traversal. A screen-reader must visit the content of this node before the content of the one it precedes. The successor is a virtual descendant of the given `root`. If `virtualDescendantId` equals to `https://developer.android.com/reference/android/view/View.html#NO_ID` the root is set as the successor.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html root` | The root of the virtual subtree. |
| `int virtualDescendantId` | The id of the virtual descendant. |

### setUniqueId

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public void setUniqueId(@Nullable String uniqueId)
```

Sets the unique id of this node.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html uniqueId` | the unique id of this node. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### setViewIdResourceName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setViewIdResourceName(String viewId)
```

Sets the fully qualified resource name of the source view's id.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html viewId` | The id resource name. |

### setVisibleToUser

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void setVisibleToUser(boolean visibleToUser)
```

Sets whether this node is visible to the user.

**Note:** Cannot be called from an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html`. This class is made immutable before being delivered to an AccessibilityService.

| Parameters |
|---|---|
| `boolean visibleToUser` | Whether the node is visible to the user. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If called from an AccessibilityService. |

### toString

```
public @NonNull String toString()
```

### unwrap

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public AccessibilityNodeInfo unwrap()
```

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html` | The unwrapped `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html`. |

### wrap

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static AccessibilityNodeInfoCompat wrap(@NonNull AccessibilityNodeInfo info)
```

Creates a new instance wrapping an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html info` | The info. |