AccessibilityNodeInfoCompat
Helper for accessing android.view.accessibility.AccessibilityNodeInfo in a backwards compatible fashion.
Constructors
Link copied to clipboard
Creates a new instance wrapping an android.view.accessibility.AccessibilityNodeInfo.
Types
Link copied to clipboard
A class defining an action that can be performed on an AccessibilityNodeInfo.
Link copied to clipboard
Class with information if a node is a collection.
Link copied to clipboard
Class with information if a node is a collection item.
Link copied to clipboard
Class with information if a node is a range.
Link copied to clipboard
class TouchDelegateInfoCompat
Class with information of touch delegated views and regions.
Properties
Link copied to clipboard
Action that gives accessibility focus to the node.
Link copied to clipboard
Argument for specifying the collection column to make visible on screen.
Link copied to clipboard
val ACTION_ARGUMENT_DIRECTION_INT: String = "androidx.core.view.accessibility.action.ARGUMENT_DIRECTION_INT"
Argument to represent the direction when using ACTION_SCROLL_IN_DIRECTION.
Link copied to clipboard
Argument for whether when moving at granularity to extend the selection or to move it otherwise.
Link copied to clipboard
Argument for which HTML element to get moving to the next/previous HTML element.
Link copied to clipboard
Argument for specifying the x coordinate to which to move a window.
Link copied to clipboard
Argument for specifying the y coordinate to which to move a window.
Link copied to clipboard
Argument for which movement granularity to be used when traversing the node text.
Link copied to clipboard
val ACTION_ARGUMENT_PRESS_AND_HOLD_DURATION_MILLIS_INT: String = "android.view.accessibility.action.ARGUMENT_PRESS_AND_HOLD_DURATION_MILLIS_INT"
Argument to represent the duration in milliseconds to press and hold a node.
Link copied to clipboard
val ACTION_ARGUMENT_PROGRESS_VALUE: String = "android.view.accessibility.action.ARGUMENT_PROGRESS_VALUE"
Argument for specifying the progress value to set.
Link copied to clipboard
Argument for specifying the collection row to make visible on screen.
Link copied to clipboard
val ACTION_ARGUMENT_SCROLL_AMOUNT_FLOAT: String = "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.
Link copied to clipboard
Argument for specifying the selection end.
Link copied to clipboard
Argument for specifying the selection start.
Link copied to clipboard
Argument for specifying the text content to set Type: CharSequenceActions:ACTION_SET_TEXT
Link copied to clipboard
Action that clears accessibility focus of the node.
Link copied to clipboard
Action that unfocuses the node.
Link copied to clipboard
Action that unselects the node.
Link copied to clipboard
Action that clicks on the node info.
Link copied to clipboard
Action to collapse an expandable node.
Link copied to clipboard
Action to copy the current selection to the clipboard.
Link copied to clipboard
Action to cut the current selection and place it to the clipboard.
Link copied to clipboard
Action to dismiss a dismissible node.
Link copied to clipboard
Action to expand an expandable node.
Link copied to clipboard
Action that focuses the node.
Link copied to clipboard
Action that long clicks on the node.
Link copied to clipboard
Action that requests to go to the next entity in this node's text at a given movement granularity.
Link copied to clipboard
Action to move to the next HTML element of a given type.
Link copied to clipboard
Action to paste the current clipboard content.
Link copied to clipboard
Action that requests to go to the previous entity in this node's text at a given movement granularity.
Link copied to clipboard
Action to move to the previous HTML element of a given type.
Link copied to clipboard
Action to scroll the node content backward.
Link copied to clipboard
Action to scroll the node content forward.
Link copied to clipboard
Action that selects the node.
Link copied to clipboard
Action to set the selection.
Link copied to clipboard
Action that sets the text of the node.
Link copied to clipboard
val EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH: String = "android.core.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH"
Integer argument specifying the end index of the requested text location data.
Link copied to clipboard
The maximum allowed length of the requested text location data.
Link copied to clipboard
val EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX: String = "android.core.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX"
Integer argument specifying the start index of the requested text location data.
Link copied to clipboard
val EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY: String = "android.core.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_KEY"
Key used to request and locate extra data for text character location.
Link copied to clipboard
Prefetching strategy that prefetches the ancestors of the requested node.
Link copied to clipboard
Prefetching strategy that prefetches the descendants of the requested node breadth-first.
Link copied to clipboard
Prefetching strategy that prefetches the descendants of the requested node depth-first.
Link copied to clipboard
Prefetching strategy that prefetches the descendants in a hybrid depth first and breadth first approach.
Link copied to clipboard
Prefetching strategy that prefetches the siblings of the requested node.
Link copied to clipboard
Prefetching flag that specifies prefetching should not be interrupted by a request to retrieve a node or perform an action on a node.
Link copied to clipboard
The accessibility focus.
Link copied to clipboard
The input focus.
Link copied to clipboard
Maximum batch size of prefetched nodes for a request.
Link copied to clipboard
Movement granularity bit for traversing the text of a node by character.
Link copied to clipboard
Movement granularity bit for traversing the text of a node by line.
Link copied to clipboard
Movement granularity bit for traversing the text of a node by page.
Link copied to clipboard
Movement granularity bit for traversing the text of a node by paragraph.
Link copied to clipboard
Movement granularity bit for traversing the text of a node by word.
Link copied to clipboard
androidx.customview.widget.ExploreByTouchHelper.
Functions
Link copied to clipboard
Adds an action that can be performed on the node.
Link copied to clipboard
Link copied to clipboard
Gets if this node opens a popup or a dialog.
Link copied to clipboard
Finds android.view.accessibility.AccessibilityNodeInfos by text.
Link copied to clipboard
Finds AccessibilityNodeInfoCompats by the fully qualified view id's resource name where a fully qualified id is of the from "package:id/id_resource_name".
Link copied to clipboard
Find the view that has the specified focus type.
Link copied to clipboard
Searches for the nearest view in the specified direction that can take input focus.
Link copied to clipboard
Gets the actions that can be performed on the node.
Link copied to clipboard
Gets the actions that can be performed on the node.
Link copied to clipboard
Get the extra data available for this node.
Link copied to clipboard
Gets the node bounds in the viewParent's coordinates.
Link copied to clipboard
Gets the node bounds in screen coordinates.
Link copied to clipboard
Gets the node bounds in window coordinates.
Link copied to clipboard
Get the child at given index.
Link copied to clipboard
Gets the number of children.
Link copied to clipboard
Gets the class this node comes from.
Link copied to clipboard
Link copied to clipboard
Gets the collection info if the node is a collection.
Link copied to clipboard
Gets the collection item info if the node is a collection item.
Link copied to clipboard
Returns the container title.
Link copied to clipboard
Gets the content description of this node.
Link copied to clipboard
Get the drawing order of the view corresponding it this node.
Link copied to clipboard
Gets the error text of this node.
Link copied to clipboard
Gets the extra rendering info if the node is meant to be refreshed with extra data to examine rendering related accessibility issues.
Link copied to clipboard
Gets the hint text of this node.
Link copied to clipboard
Gets the input type of the source as defined by InputType.
Link copied to clipboard
Gets the node info which serves as the label of the view represented by this info for accessibility purposes.
Link copied to clipboard
Gets the node info for which the view represented by this info serves as a label for accessibility purposes.
Link copied to clipboard
Gets the node's live region mode.
Link copied to clipboard
Returns the maximum text length for this node.
Link copied to clipboard
Gets the minimum time duration between two content change events.
Link copied to clipboard
Gets the movement granularities for traversing the text of this node.
Link copied to clipboard
Gets the package this node comes from.
Link copied to clipboard
Get the title of the pane represented by this node.
Link copied to clipboard
Gets the parent.
Link copied to clipboard
Gets the range info if this node is a range.
Link copied to clipboard
Gets the custom role description.
Link copied to clipboard
Gets the state description of this node.
Link copied to clipboard
Gets the text of this node.
Link copied to clipboard
Gets the text selection end.
Link copied to clipboard
Gets the text selection start.
Link copied to clipboard
Gets the tooltip text of this node.
Link copied to clipboard
Get the TouchDelegateInfoCompat for touch delegate behavior with the represented view.
Link copied to clipboard
Gets the node after which this one is visited in accessibility traversal.
Link copied to clipboard
Gets the node before which this one is visited during traversal.
Link copied to clipboard
Gets the unique id of this node.
Link copied to clipboard
Gets the fully qualified resource name of the source view's id.
Link copied to clipboard
Gets the window to which this node belongs.
Link copied to clipboard
Gets the id of the window from which the info comes from.
Link copied to clipboard
Gets whether the node has setRequestInitialAccessibilityFocus.
Link copied to clipboard
Gets if the node's accessibility data is considered sensitive.
Link copied to clipboard
Gets whether this node is accessibility focused.
Link copied to clipboard
Gets whether this node is checkable.
Link copied to clipboard
Gets whether this node is clickable.
Link copied to clipboard
Gets if the content of this node is invalid.
Link copied to clipboard
Gets whether this node is context clickable.
Link copied to clipboard
Gets if the node can be dismissed.
Link copied to clipboard
Gets if the node is editable.
Link copied to clipboard
Gets whether this node is focusable.
Link copied to clipboard
Gets if the node supports granular scrolling.
Link copied to clipboard
Returns whether the node originates from a view considered important for accessibility.
Link copied to clipboard
Gets whether this node is long clickable.
Link copied to clipboard
Gets if the node is a multi line editable text.
Link copied to clipboard
Gets whether this node is a password.
Link copied to clipboard
Returns whether the node is explicitly marked as a focusable unit by a screen reader.
Link copied to clipboard
Gets if the node is scrollable.
Link copied to clipboard
Gets whether this node is selected.
Link copied to clipboard
Returns whether the node's text represents a hint for the user to enter text.
Link copied to clipboard
Returns whether node represents a text entry key that is part of a keyboard or keypad.
Link copied to clipboard
Gets if the node has selectable text.
Link copied to clipboard
Gets whether this node is visible to the user.
Link copied to clipboard
Returns a cached instance if such is available otherwise a new one.
Returns a cached instance if such is available otherwise a new one and sets the source.
Returns a cached instance if such is available or a new one is create.
Link copied to clipboard
Performs an action on the node.
Link copied to clipboard
Removes an action that can be performed on the node.
Link copied to clipboard
Removes a child.
Removes a virtual child which is a descendant of the given
root
.Link copied to clipboard
Sets whether this node's accessibility data is considered sensitive.
Link copied to clipboard
Sets whether this node is accessibility focused.
Link copied to clipboard
Set the extra data available for this node.
Link copied to clipboard
Sets the node bounds in the viewParent's coordinates.
Link copied to clipboard
Sets the node bounds in screen coordinates.
Link copied to clipboard
Sets the node bounds in window coordinates.
Link copied to clipboard
Sets if this node opens a popup or a dialog.
Link copied to clipboard
Sets whether this node is checkable.
Link copied to clipboard
Sets whether this node is checked.
Link copied to clipboard
Sets the class this node comes from.
Link copied to clipboard
Sets whether this node is clickable.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the container title for app-developer-defined container which can be any type of ViewGroup or layout.
Link copied to clipboard
Sets the content description of this node.
Link copied to clipboard
Sets if the content of this node is invalid.
Link copied to clipboard
Sets whether this node is context clickable.
Link copied to clipboard
Sets if the node can be dismissed.
Link copied to clipboard
Set the drawing order of the view corresponding it this node.
Link copied to clipboard
Sets whether this node is editable.
Link copied to clipboard
Sets whether this node is enabled.
Link copied to clipboard
Sets the error text of this node.
Link copied to clipboard
Sets whether this node is focusable.
Link copied to clipboard
Sets whether this node is focused.
Link copied to clipboard
Sets if the node supports granular scrolling.
Link copied to clipboard
Sets whether the node represents a heading.
Link copied to clipboard
Sets the hint text of this node.
Link copied to clipboard
Sets whether the node is considered important for accessibility.
Link copied to clipboard
Sets the input type of the source as defined by InputType.
Link copied to clipboard
Sets the view which serves as the label of the view represented by this info for accessibility purposes.
Link copied to clipboard
Sets the view for which the view represented by this info serves as a label for accessibility purposes.
Link copied to clipboard
Sets the node's live region mode.
Link copied to clipboard
Sets whether this node is long clickable.
Link copied to clipboard
Sets the maximum text length, or -1 for no limit.
Link copied to clipboard
Sets the minimum time duration between two content change events, which is used in throttling content change events in accessibility services.
Link copied to clipboard
Sets the movement granularities for traversing the text of this node.
Link copied to clipboard
Sets if the node is a multi line editable text.
Link copied to clipboard
Sets the package this node comes from.
Link copied to clipboard
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.
Link copied to clipboard
Sets whether this node is a password.
Link copied to clipboard
Connects this node to the View's root so that operations on this node can query the entire AccessibilityNodeInfoCompat tree and perform accessibility actions on nodes.
Link copied to clipboard
Sets the range info if this node is a range.
Link copied to clipboard
Sets whether the node has requested initial accessibility focus.
Link copied to clipboard
Sets the custom role description.
Link copied to clipboard
Sets whether the node should be considered a focusable unit by a screen reader.
Link copied to clipboard
Sets if the node is scrollable.
Link copied to clipboard
Sets whether this node is selected.
Link copied to clipboard
Sets whether the node's text represents a hint for the user to enter text.
Link copied to clipboard
Sets the state description of this node.
Link copied to clipboard
Sets the text of this node.
Link copied to clipboard
Sets whether the node represents a text entry key that is part of a keyboard or keypad.
Link copied to clipboard
Sets if the node has selectable text.
Link copied to clipboard
Sets the text selection start and end.
Link copied to clipboard
Sets the tooltip text of this node.
Link copied to clipboard
open fun setTouchDelegateInfo(@NonNull delegatedInfo: AccessibilityNodeInfoCompat.TouchDelegateInfoCompat)
Set touch delegate info if the represented view has a android.view.TouchDelegate.
Link copied to clipboard
Sets the view whose node is visited after this one in accessibility traversal.
Sets the node after which this one is visited in accessibility traversal.
Link copied to clipboard
Sets the view before whose node this one should be visited during traversal.
Sets the node before which this one is visited during traversal.
Link copied to clipboard
Sets the unique id of this node.
Link copied to clipboard
Sets the fully qualified resource name of the source view's id.
Link copied to clipboard
Sets whether this node is visible to the user.
Link copied to clipboard
Link copied to clipboard
Creates a new instance wrapping an android.view.accessibility.AccessibilityNodeInfo.