/**@class android.view.accessibility.AccessibilityNodeInfo implements android.os.Parcelable @extends java.lang.Object This class represents a node of the window content as well as actions that can be requested from its source. From the point of view of an {@link android.accessibilityservice.AccessibilityService} a window's content is presented as a tree of accessibility node infos, which may or may not map one-to-one to the view hierarchy. In other words, a custom view is free to report itself as a tree of accessibility node info. </p> <p> Once an accessibility node info is delivered to an accessibility service it is made immutable and calling a state mutation method generates an error. </p> <p> Please refer to {@link android.accessibilityservice.AccessibilityService} for details about how to obtain a handle to window content as a tree of accessibility node info as well as details about the security model. </p> <div class="special reference"> <h3>Developer Guides</h3> <p>For more information about making applications accessible, read the <a href="{@docRoot}guide/topics/ui/accessibility/index.html">Accessibility</a> developer guide.</p> </div> @see android.accessibilityservice.AccessibilityService @see AccessibilityEvent @see AccessibilityManager */ var AccessibilityNodeInfo = { /**@hide */ UNDEFINED_CONNECTION_ID : "-1", /**@hide */ UNDEFINED_SELECTION_INDEX : "-1", /**@hide */ UNDEFINED_ITEM_ID : "2147483647", /**@hide */ ROOT_ITEM_ID : "2147483646", /**@hide */ UNDEFINED_NODE_ID : "null", /**@hide */ ROOT_NODE_ID : "null", /**@hide */ FLAG_PREFETCH_PREDECESSORS : "1", /**@hide */ FLAG_PREFETCH_SIBLINGS : "2", /**@hide */ FLAG_PREFETCH_DESCENDANTS : "4", /**@hide */ FLAG_INCLUDE_NOT_IMPORTANT_VIEWS : "8", /**@hide */ FLAG_REPORT_VIEW_IDS : "16", /** Action that gives input focus to the node. */ ACTION_FOCUS : "1", /** Action that clears input focus of the node. */ ACTION_CLEAR_FOCUS : "2", /** Action that selects the node. */ ACTION_SELECT : "4", /** Action that deselects the node. */ ACTION_CLEAR_SELECTION : "8", /** Action that clicks on the node info. See {@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_CLICK} */ ACTION_CLICK : "16", /** Action that long clicks on the node. */ ACTION_LONG_CLICK : "32", /** Action that gives accessibility focus to the node. */ ACTION_ACCESSIBILITY_FOCUS : "64", /** Action that clears accessibility focus of the node. */ ACTION_CLEAR_ACCESSIBILITY_FOCUS : "128", /** 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. <p> <strong>Arguments:</strong> {@link #ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT}<, {@link #ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN}<br> <strong>Example:</strong> Move to the previous character and do not extend selection. <code><pre><p> 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); </code></pre></p> </p> @see #ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT @see #ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN @see #setMovementGranularities(int) @see #getMovementGranularities() @see #MOVEMENT_GRANULARITY_CHARACTER @see #MOVEMENT_GRANULARITY_WORD @see #MOVEMENT_GRANULARITY_LINE @see #MOVEMENT_GRANULARITY_PARAGRAPH @see #MOVEMENT_GRANULARITY_PAGE */ ACTION_NEXT_AT_MOVEMENT_GRANULARITY : "256", /** 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. <p> <strong>Arguments:</strong> {@link #ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT}<, {@link #ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN}<br> <strong>Example:</strong> Move to the next character and do not extend selection. <code><pre><p> 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); </code></pre></p> </p> @see #ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT @see #ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN @see #setMovementGranularities(int) @see #getMovementGranularities() @see #MOVEMENT_GRANULARITY_CHARACTER @see #MOVEMENT_GRANULARITY_WORD @see #MOVEMENT_GRANULARITY_LINE @see #MOVEMENT_GRANULARITY_PARAGRAPH @see #MOVEMENT_GRANULARITY_PAGE */ ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY : "512", /** Action to move to the next HTML element of a given type. For example, move to the BUTTON, INPUT, TABLE, etc. <p> <strong>Arguments:</strong> {@link #ACTION_ARGUMENT_HTML_ELEMENT_STRING}<br> <strong>Example:</strong> <code><pre><p> Bundle arguments = new Bundle(); arguments.putString(AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING, "BUTTON"); info.performAction(AccessibilityNodeInfo.ACTION_NEXT_HTML_ELEMENT, arguments); </code></pre></p> </p> */ ACTION_NEXT_HTML_ELEMENT : "1024", /** Action to move to the previous HTML element of a given type. For example, move to the BUTTON, INPUT, TABLE, etc. <p> <strong>Arguments:</strong> {@link #ACTION_ARGUMENT_HTML_ELEMENT_STRING}<br> <strong>Example:</strong> <code><pre><p> Bundle arguments = new Bundle(); arguments.putString(AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING, "BUTTON"); info.performAction(AccessibilityNodeInfo.ACTION_PREVIOUS_HTML_ELEMENT, arguments); </code></pre></p> </p> */ ACTION_PREVIOUS_HTML_ELEMENT : "2048", /** Action to scroll the node content forward. */ ACTION_SCROLL_FORWARD : "4096", /** Action to scroll the node content backward. */ ACTION_SCROLL_BACKWARD : "8192", /** Action to copy the current selection to the clipboard. */ ACTION_COPY : "16384", /** Action to paste the current clipboard content. */ ACTION_PASTE : "32768", /** Action to cut the current selection and place it to the clipboard. */ ACTION_CUT : "65536", /** Action to set the selection. Performing this action with no arguments clears the selection. <p> <strong>Arguments:</strong> {@link #ACTION_ARGUMENT_SELECTION_START_INT}, {@link #ACTION_ARGUMENT_SELECTION_END_INT}<br> <strong>Example:</strong> <code><pre><p> 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); </code></pre></p> </p> @see #ACTION_ARGUMENT_SELECTION_START_INT @see #ACTION_ARGUMENT_SELECTION_END_INT */ ACTION_SET_SELECTION : "131072", /** Action to expand an expandable node. */ ACTION_EXPAND : "262144", /** Action to collapse an expandable node. */ ACTION_COLLAPSE : "524288", /** Action to dismiss a dismissable node. */ ACTION_DISMISS : "1048576", /** Action that sets the text of the node. Performing the action without argument, using <code> null</code> or empty {@link CharSequence} will clear the text. This action will also put the cursor at the end of text. <p> <strong>Arguments:</strong> {@link #ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE}<br> <strong>Example:</strong> <code><pre><p> Bundle arguments = new Bundle(); arguments.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, "android"); info.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments); </code></pre></p> */ ACTION_SET_TEXT : "2097152", /**@hide */ LAST_LEGACY_STANDARD_ACTION : "2097152", /** Argument for which movement granularity to be used when traversing the node text. <p> <strong>Type:</strong> int<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_NEXT_AT_MOVEMENT_GRANULARITY}</li> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY}</li> </ul> </p> @see AccessibilityAction#ACTION_NEXT_AT_MOVEMENT_GRANULARITY @see AccessibilityAction#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY */ ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT : "ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT", /** Argument for which HTML element to get moving to the next/previous HTML element. <p> <strong>Type:</strong> String<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_NEXT_HTML_ELEMENT}</li> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_PREVIOUS_HTML_ELEMENT}</li> </ul> </p> @see AccessibilityAction#ACTION_NEXT_HTML_ELEMENT @see AccessibilityAction#ACTION_PREVIOUS_HTML_ELEMENT */ ACTION_ARGUMENT_HTML_ELEMENT_STRING : "ACTION_ARGUMENT_HTML_ELEMENT_STRING", /** Argument for whether when moving at granularity to extend the selection or to move it otherwise. <p> <strong>Type:</strong> boolean<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_NEXT_AT_MOVEMENT_GRANULARITY}</li> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY}</li> </ul> @see AccessibilityAction#ACTION_NEXT_AT_MOVEMENT_GRANULARITY @see AccessibilityAction#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY */ ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN : "ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN", /** Argument for specifying the selection start. <p> <strong>Type:</strong> int<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SET_SELECTION}</li> </ul> @see AccessibilityAction#ACTION_SET_SELECTION */ ACTION_ARGUMENT_SELECTION_START_INT : "ACTION_ARGUMENT_SELECTION_START_INT", /** Argument for specifying the selection end. <p> <strong>Type:</strong> int<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SET_SELECTION}</li> </ul> @see AccessibilityAction#ACTION_SET_SELECTION */ ACTION_ARGUMENT_SELECTION_END_INT : "ACTION_ARGUMENT_SELECTION_END_INT", /** Argument for specifying the text content to set. <p> <strong>Type:</strong> CharSequence<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SET_TEXT}</li> </ul> @see AccessibilityAction#ACTION_SET_TEXT */ ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE : "ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE", /** Argument for specifying the collection row to make visible on screen. <p> <strong>Type:</strong> int<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SCROLL_TO_POSITION}</li> </ul> @see AccessibilityAction#ACTION_SCROLL_TO_POSITION */ ACTION_ARGUMENT_ROW_INT : "android.view.accessibility.action.ARGUMENT_ROW_INT", /** Argument for specifying the collection column to make visible on screen. <p> <strong>Type:</strong> int<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SCROLL_TO_POSITION}</li> </ul> @see AccessibilityAction#ACTION_SCROLL_TO_POSITION */ ACTION_ARGUMENT_COLUMN_INT : "android.view.accessibility.action.ARGUMENT_COLUMN_INT", /** Argument for specifying the progress value to set. <p> <strong>Type:</strong> float<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SET_PROGRESS}</li> </ul> @see AccessibilityAction#ACTION_SET_PROGRESS */ ACTION_ARGUMENT_PROGRESS_VALUE : "android.view.accessibility.action.ARGUMENT_PROGRESS_VALUE", /** Argument for specifying the x coordinate to which to move a window. <p> <strong>Type:</strong> int<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_MOVE_WINDOW}</li> </ul> @see AccessibilityAction#ACTION_MOVE_WINDOW */ ACTION_ARGUMENT_MOVE_WINDOW_X : "ACTION_ARGUMENT_MOVE_WINDOW_X", /** Argument for specifying the y coordinate to which to move a window. <p> <strong>Type:</strong> int<br> <strong>Actions:</strong> <ul> <li>{@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_MOVE_WINDOW}</li> </ul> @see AccessibilityAction#ACTION_MOVE_WINDOW */ ACTION_ARGUMENT_MOVE_WINDOW_Y : "ACTION_ARGUMENT_MOVE_WINDOW_Y", /** Argument to pass the {@link AccessibilityClickableSpan}. For use with R.id.accessibilityActionClickOnClickableSpan @hide */ ACTION_ARGUMENT_ACCESSIBLE_CLICKABLE_SPAN : "android.view.accessibility.action.ACTION_ARGUMENT_ACCESSIBLE_CLICKABLE_SPAN", /** The input focus. */ FOCUS_INPUT : "1", /** The accessibility focus. */ FOCUS_ACCESSIBILITY : "2", /** Movement granularity bit for traversing the text of a node by character. */ MOVEMENT_GRANULARITY_CHARACTER : "1", /** Movement granularity bit for traversing the text of a node by word. */ MOVEMENT_GRANULARITY_WORD : "2", /** Movement granularity bit for traversing the text of a node by line. */ MOVEMENT_GRANULARITY_LINE : "4", /** Movement granularity bit for traversing the text of a node by paragraph. */ MOVEMENT_GRANULARITY_PARAGRAPH : "8", /** Movement granularity bit for traversing the text of a node by page. */ MOVEMENT_GRANULARITY_PAGE : "16", /** Key used to request and locate extra data for text character location. This key requests that an array of {@link android.graphics.RectF}s be added to the extras. This request is made with {@link #refreshWithExtraData(String, Bundle)}. The arguments taken by this request are two integers: {@link #EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX} and {@link #EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH}. The starting index must be valid inside the CharSequence returned by {@link #getText}(), and the length must be positive. <p> The data can be retrieved from the {@code Bundle} returned by {@link #getExtras}() using this string as a key for {@link Bundle#getParcelableArray(String)}. The {@link android.graphics.RectF} will be null for characters that either do not exist or are off the screen. {@see #refreshWithExtraData(String, Bundle)} */ EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY : "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_KEY", /** Integer argument specifying the start index of the requested text location data. Must be valid inside the CharSequence returned by {@link #getText}(). @see #EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY */ EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX : "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX", /** Integer argument specifying the end index of the requested text location data. Must be positive. @see #EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY */ EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH : "android.view.accessibility.extra.DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH", /**@hide */ EXTRA_DATA_REQUESTED_KEY : "android.view.accessibility.AccessibilityNodeInfo.extra_data_requested", /** @see android.os.Parcelable.Creator */ CREATOR : "null", /**Gets the accessibility view id which identifies a View in the view three. @param {Number} accessibilityNodeId The id of an {@link AccessibilityNodeInfo}. @return {Number} The accessibility view id part of the node id. @hide */ getAccessibilityViewId : function( ) {}, /**Gets the virtual descendant id which identifies an imaginary view in a containing View. @param {Number} accessibilityNodeId The id of an {@link AccessibilityNodeInfo}. @return {Number} The virtual view id part of the node id. @hide */ getVirtualDescendantId : function( ) {}, /**Makes a node id by shifting the <code>virtualDescendantId</code> by {@link #VIRTUAL_DESCENDANT_ID_SHIFT} and taking the bitwise or with the <code>accessibilityViewId</code>. @param {Number} accessibilityViewId A View accessibility id. @param {Number} virtualDescendantId A virtual descendant id. @return {Number} The node id. @hide */ makeNodeId : function( ) {}, /**Sets the source. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} source The info source. */ setSource : function( ) {}, /**Sets the source to be a virtual descendant of the given <code>root</code>. If <code>virtualDescendantId</code> is {@link View#NO_ID} the root is set as the source. <p> 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. </p> <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} root The root of the virtual subtree. @param {Number} virtualDescendantId The id of the virtual descendant. */ setSource : function( ) {}, /**Find the view that has the specified focus type. The search starts from the view represented by this node info. @param {Number} focus The focus to find. One of {@link #FOCUS_INPUT} or {@link #FOCUS_ACCESSIBILITY}. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The node info of the focused view or null. @see #FOCUS_INPUT @see #FOCUS_ACCESSIBILITY */ findFocus : function( ) {}, /**Searches for the nearest view in the specified direction that can take the input focus. @param {Number} direction The direction. Can be one of: {@link View#FOCUS_DOWN}, {@link View#FOCUS_UP}, {@link View#FOCUS_LEFT}, {@link View#FOCUS_RIGHT}, {@link View#FOCUS_FORWARD}, {@link View#FOCUS_BACKWARD}. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The node info for the view that can take accessibility focus. */ focusSearch : function( ) {}, /**Gets the id of the window from which the info comes from. @return {Number} The window id. */ getWindowId : function( ) {}, /**Refreshes this info with the latest state of the view it represents. <p> <strong>Note:</strong> If this method returns false this info is obsolete since it represents a view that is no longer in the view tree and should be recycled. </p> @param {Object {Bundle}} bypassCache Whether to bypass the cache. @return {Boolean} Whether the refresh succeeded. @hide */ refresh : function( ) {}, /**Refreshes this info with the latest state of the view it represents. @return {Boolean} {@code true} if the refresh succeeded. {@code false} if the {@link View} represented by this node is no longer in the view tree (and thus this node is obsolete and should be recycled). */ refresh : function( ) {}, /**Refreshes this info with the latest state of the view it represents, and request new data be added by the View. @param {String} extraDataKey The extra data requested. Data that must be requested with this mechanism is generally expensive to retrieve, so should only be requested when needed. See {@link #EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY} and {@link #getAvailableExtraData()}. @param {Object {Bundle}} args A bundle of arguments for the request. These depend on the particular request. @return {Boolean} {@code true} if the refresh succeeded. {@code false} if the {@link View} represented by this node is no longer in the view tree (and thus this node is obsolete and should be recycled). */ refreshWithExtraData : function( ) {}, /**Returns the array containing the IDs of this node's children. @hide */ getChildNodeIds : function( ) {}, /**Returns the id of the child at the specified index. @throws IndexOutOfBoundsException when index < 0 || index >= getChildCount() @hide */ getChildId : function( ) {}, /**Gets the number of children. @return {Number} The child count. */ getChildCount : function( ) {}, /**Get the child at given index. <p> <strong>Note:</strong> It is a client responsibility to recycle the received info by calling {@link android.view.accessibility.AccessibilityNodeInfo#recycle()} to avoid creating of multiple instances. </p> @param {Number} index The child index. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The child node. @throws IllegalStateException If called outside of an AccessibilityService. */ getChild : function( ) {}, /**Adds a child. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. Note that a view cannot be made its own child. </p> @param {Object {View}} child The child. @throws IllegalStateException If called from an AccessibilityService. */ addChild : function( ) {}, /**Unchecked version of {@link #addChild}(View) that does not verify uniqueness. For framework use only. @hide */ addChildUnchecked : function( ) {}, /**Removes a child. If the child was not previously added to the node, calling this method has no effect. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} child The child. @return {Boolean} true if the child was present @throws IllegalStateException If called from an AccessibilityService. */ removeChild : function( ) {}, /**Adds a virtual child which is a descendant of the given <code>root</code>. If <code>virtualDescendantId</code> is {@link View#NO_ID} the root is added as a child. <p> 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 that a view cannot be made its own child. </p> @param {Object {View}} root The root of the virtual subtree. @param {Number} virtualDescendantId The id of the virtual child. */ addChild : function( ) {}, /**Removes a virtual child which is a descendant of the given <code>root</code>. If the child was not previously added to the node, calling this method has no effect. @param {Object {View}} root The root of the virtual subtree. @param {Number} virtualDescendantId The id of the virtual child. @return {Boolean} true if the child was present @see #addChild(View, int) */ removeChild : function( ) {}, /**Gets the actions that can be performed on the node. */ getActionList : function( ) {}, /**Gets the actions that can be performed on the node. @return {Number} The bit mask of with actions. @see AccessibilityNodeInfo#ACTION_FOCUS @see AccessibilityNodeInfo#ACTION_CLEAR_FOCUS @see AccessibilityNodeInfo#ACTION_SELECT @see AccessibilityNodeInfo#ACTION_CLEAR_SELECTION @see AccessibilityNodeInfo#ACTION_ACCESSIBILITY_FOCUS @see AccessibilityNodeInfo#ACTION_CLEAR_ACCESSIBILITY_FOCUS @see AccessibilityNodeInfo#ACTION_CLICK @see AccessibilityNodeInfo#ACTION_LONG_CLICK @see AccessibilityNodeInfo#ACTION_NEXT_AT_MOVEMENT_GRANULARITY @see AccessibilityNodeInfo#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY @see AccessibilityNodeInfo#ACTION_NEXT_HTML_ELEMENT @see AccessibilityNodeInfo#ACTION_PREVIOUS_HTML_ELEMENT @see AccessibilityNodeInfo#ACTION_SCROLL_FORWARD @see AccessibilityNodeInfo#ACTION_SCROLL_BACKWARD @deprecated Use {@link #getActionList()}. */ getActions : function( ) {}, /**Adds an action that can be performed on the node. <p> To add a standard action use the static constants on {@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction}. To add a custom action create a new {@link android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction} by passing in a resource id from your application as the action id and an optional label that describes the action. To override one of the standard actions use as the action id of a standard action id such as {@link #ACTION_CLICK} and an optional label that describes the action. </p> <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {AccessibilityNodeInfo.AccessibilityAction}} action The action. @throws IllegalStateException If called from an AccessibilityService. */ addAction : function( ) {}, /**Adds an action that can be performed on the node. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Number} action The action. @throws IllegalStateException If called from an AccessibilityService. @throws IllegalArgumentException If the argument is not one of the standard actions. @deprecated This has been deprecated for {@link #addAction(AccessibilityAction)} */ addAction : function( ) {}, /**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. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Number} action The action to be removed. @throws IllegalStateException If called from an AccessibilityService. @deprecated Use {@link #removeAction(AccessibilityAction)} */ removeAction : function( ) {}, /**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. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {AccessibilityNodeInfo.AccessibilityAction}} action The action to be removed. @return {Boolean} The action removed from the list of actions. @throws IllegalStateException If called from an AccessibilityService. */ removeAction : function( ) {}, /**Removes all actions. @hide */ removeAllActions : function( ) {}, /**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. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The succeeding node if such or <code>null</code>. @see #setTraversalBefore(android.view.View) @see #setTraversalBefore(android.view.View, int) */ getTraversalBefore : function( ) {}, /**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. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} view The view providing the preceding node. @see #getTraversalBefore() */ setTraversalBefore : function( ) {}, /**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 <code>root</code>. If <code>virtualDescendantId</code> equals to {@link View#NO_ID} the root is set as the successor. <p> 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. </p> <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} root The root of the virtual subtree. @param {Number} virtualDescendantId The id of the virtual descendant. */ setTraversalBefore : function( ) {}, /**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. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The succeeding node if such or <code>null</code>. @see #setTraversalAfter(android.view.View) @see #setTraversalAfter(android.view.View, int) */ getTraversalAfter : function( ) {}, /**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. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} view The previous view. @see #getTraversalAfter() */ setTraversalAfter : function( ) {}, /**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 <code>virtualDescendantId</code> equals to {@link View#NO_ID} the root is set as the predecessor. <p> 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. </p> <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} root The root of the virtual subtree. @param {Number} virtualDescendantId The id of the virtual descendant. */ setTraversalAfter : function( ) {}, /**Get the extra data available for this node. <p> 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 {@link #refreshWithExtraData(String, Bundle)}. @return {Object {java.util.List}} An unmodifiable list of keys corresponding to extra data that can be requested. @see #EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY */ getAvailableExtraData : function( ) {}, /**Set the extra data available for this node. <p> <strong>Note:</strong> When a {@code View} passes in a non-empty list, it promises that it will populate the node's extras with corresponding pieces of information in {@link View#addExtraDataToAccessibilityNodeInfo(AccessibilityNodeInfo, String, Bundle)}. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. @param {Object {java.util.List}} extraDataKeys A list of types of extra data that are available. @see #getAvailableExtraData() @throws IllegalStateException If called from an AccessibilityService. */ setAvailableExtraData : function( ) {}, /**Sets the maximum text length, or -1 for no limit. <p> Typically used to indicate that an editable text field has a limit on the number of characters entered. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. @param {Number} max The maximum text length. @see #getMaxTextLength() @throws IllegalStateException If called from an AccessibilityService. */ setMaxTextLength : function( ) {}, /**Returns the maximum text length for this node. @return {Number} The maximum text length, or -1 for no limit. @see #setMaxTextLength(int) */ getMaxTextLength : function( ) {}, /**Sets the movement granularities for traversing the text of this node. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Number} granularities The bit mask with granularities. @throws IllegalStateException If called from an AccessibilityService. */ setMovementGranularities : function( ) {}, /**Gets the movement granularities for traversing the text of this node. @return {Number} The bit mask with granularities. */ getMovementGranularities : function( ) {}, /**Performs an action on the node. <p> <strong>Note:</strong> An action can be performed only if the request is made from an {@link android.accessibilityservice.AccessibilityService}. </p> @param {Number} action The action to perform. @return {Boolean} True if the action was performed. @throws IllegalStateException If called outside of an AccessibilityService. */ performAction : function( ) {}, /**Performs an action on the node. <p> <strong>Note:</strong> An action can be performed only if the request is made from an {@link android.accessibilityservice.AccessibilityService}. </p> @param {Number} action The action to perform. @param {Object {Bundle}} arguments A bundle with additional arguments. @return {Boolean} True if the action was performed. @throws IllegalStateException If called outside of an AccessibilityService. */ performAction : function( ) {}, /**Finds {@link android.view.accessibility.AccessibilityNodeInfo}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. <p> <strong>Note:</strong> It is a client responsibility to recycle the received info by calling {@link android.view.accessibility.AccessibilityNodeInfo#recycle()} to avoid creating of multiple instances. </p> @param {String} text The searched text. @return {Object {java.util.List}} A list of node info. */ findAccessibilityNodeInfosByText : function( ) {}, /**Finds {@link android.view.accessibility.AccessibilityNodeInfo}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". <p> <strong>Note:</strong> It is a client responsibility to recycle the received info by calling {@link android.view.accessibility.AccessibilityNodeInfo#recycle()} to avoid creating of multiple instances. </p> <p> <strong>Note:</strong> The primary usage of this API is for UI test automation and in order to report the fully qualified view id if an {@link android.view.accessibility.AccessibilityNodeInfo} the client has to set the {@link AccessibilityServiceInfo#FLAG_REPORT_VIEW_IDS} flag when configuring his {@link android.accessibilityservice.AccessibilityService}. </p> @param {String} viewId The fully qualified resource name of the view id to find. @return {Object {java.util.List}} A list of node info. */ findAccessibilityNodeInfosByViewId : function( ) {}, /**Gets the window to which this node belongs. @return {Object {android.view.accessibility.AccessibilityWindowInfo}} The window. @see android.accessibilityservice.AccessibilityService#getWindows() */ getWindow : function( ) {}, /**Gets the parent. <p> <strong>Note:</strong> It is a client responsibility to recycle the received info by calling {@link android.view.accessibility.AccessibilityNodeInfo#recycle()} to avoid creating of multiple instances. </p> @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The parent. */ getParent : function( ) {}, /** @return {Number} The parent node id. @hide */ getParentNodeId : function( ) {}, /**Sets the parent. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} parent The parent. @throws IllegalStateException If called from an AccessibilityService. */ setParent : function( ) {}, /**Sets the parent to be a virtual descendant of the given <code>root</code>. If <code>virtualDescendantId</code> equals to {@link View#NO_ID} the root is set as the parent. <p> 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. </p> <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} root The root of the virtual subtree. @param {Number} virtualDescendantId The id of the virtual descendant. */ setParent : function( ) {}, /**Gets the node bounds in the viewParent's coordinates. {@link #getParent}() does not represent the source's viewParent. Instead it represents the result of {@link View#getParentForAccessibility()}, which returns the closest ancestor where {@link View#isImportantForAccessibility()} is true. So this method is not reliable. @param {Object {Rect}} outBounds The output node bounds. @deprecated Use {@link #getBoundsInScreen(Rect)} instead. */ getBoundsInParent : function( ) {}, /**Sets the node bounds in the viewParent's coordinates. {@link #getParent}() does not represent the source's viewParent. Instead it represents the result of {@link View#getParentForAccessibility()}, which returns the closest ancestor where {@link View#isImportantForAccessibility()} is true. So this method is not reliable. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {Rect}} bounds The node bounds. @throws IllegalStateException If called from an AccessibilityService. @deprecated Accessibility services should not care about these bounds. */ setBoundsInParent : function( ) {}, /**Gets the node bounds in screen coordinates. @param {Object {Rect}} outBounds The output node bounds. */ getBoundsInScreen : function( ) {}, /**Returns the actual rect containing the node bounds in screen coordinates. @hide Not safe to expose outside the framework. */ getBoundsInScreen : function( ) {}, /**Sets the node bounds in screen coordinates. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {Rect}} bounds The node bounds. @throws IllegalStateException If called from an AccessibilityService. */ setBoundsInScreen : function( ) {}, /**Gets whether this node is checkable. @return {Boolean} True if the node is checkable. */ isCheckable : function( ) {}, /**Sets whether this node is checkable. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} checkable True if the node is checkable. @throws IllegalStateException If called from an AccessibilityService. */ setCheckable : function( ) {}, /**Gets whether this node is checked. @return {Boolean} True if the node is checked. */ isChecked : function( ) {}, /**Sets whether this node is checked. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} checked True if the node is checked. @throws IllegalStateException If called from an AccessibilityService. */ setChecked : function( ) {}, /**Gets whether this node is focusable. @return {Boolean} True if the node is focusable. */ isFocusable : function( ) {}, /**Sets whether this node is focusable. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} focusable True if the node is focusable. @throws IllegalStateException If called from an AccessibilityService. */ setFocusable : function( ) {}, /**Gets whether this node is focused. @return {Boolean} True if the node is focused. */ isFocused : function( ) {}, /**Sets whether this node is focused. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} focused True if the node is focused. @throws IllegalStateException If called from an AccessibilityService. */ setFocused : function( ) {}, /**Gets whether this node is visible to the user. @return {Boolean} Whether the node is visible to the user. */ isVisibleToUser : function( ) {}, /**Sets whether this node is visible to the user. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} visibleToUser Whether the node is visible to the user. @throws IllegalStateException If called from an AccessibilityService. */ setVisibleToUser : function( ) {}, /**Gets whether this node is accessibility focused. @return {Boolean} True if the node is accessibility focused. */ isAccessibilityFocused : function( ) {}, /**Sets whether this node is accessibility focused. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} focused True if the node is accessibility focused. @throws IllegalStateException If called from an AccessibilityService. */ setAccessibilityFocused : function( ) {}, /**Gets whether this node is selected. @return {Boolean} True if the node is selected. */ isSelected : function( ) {}, /**Sets whether this node is selected. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} selected True if the node is selected. @throws IllegalStateException If called from an AccessibilityService. */ setSelected : function( ) {}, /**Gets whether this node is clickable. @return {Boolean} True if the node is clickable. */ isClickable : function( ) {}, /**Sets whether this node is clickable. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} clickable True if the node is clickable. @throws IllegalStateException If called from an AccessibilityService. */ setClickable : function( ) {}, /**Gets whether this node is long clickable. @return {Boolean} True if the node is long clickable. */ isLongClickable : function( ) {}, /**Sets whether this node is long clickable. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} longClickable True if the node is long clickable. @throws IllegalStateException If called from an AccessibilityService. */ setLongClickable : function( ) {}, /**Gets whether this node is enabled. @return {Boolean} True if the node is enabled. */ isEnabled : function( ) {}, /**Sets whether this node is enabled. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} enabled True if the node is enabled. @throws IllegalStateException If called from an AccessibilityService. */ setEnabled : function( ) {}, /**Gets whether this node is a password. @return {Boolean} True if the node is a password. */ isPassword : function( ) {}, /**Sets whether this node is a password. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} password True if the node is a password. @throws IllegalStateException If called from an AccessibilityService. */ setPassword : function( ) {}, /**Gets if the node is scrollable. @return {Boolean} True if the node is scrollable, false otherwise. */ isScrollable : function( ) {}, /**Sets if the node is scrollable. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} scrollable True if the node is scrollable, false otherwise. @throws IllegalStateException If called from an AccessibilityService. */ setScrollable : function( ) {}, /**Gets if the node is editable. @return {Boolean} True if the node is editable, false otherwise. */ isEditable : function( ) {}, /**Sets whether this node is editable. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} editable True if the node is editable. @throws IllegalStateException If called from an AccessibilityService. */ setEditable : function( ) {}, /**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. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {CharSequence}} paneTitle The title of the pane represented by this node. */ setPaneTitle : function( ) {}, /**Get the title of the pane represented by this node. @return {Object {java.lang.CharSequence}} The title of the pane represented by this node, or {@code null} if this node does not represent a pane. */ getPaneTitle : function( ) {}, /**Get the drawing order of the view corresponding it this node. <p> Drawing order is determined only within the node's parent, so this index is only relative to its siblings. <p> 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. @return {Number} The drawing position of the view corresponding to this node relative to its siblings. */ getDrawingOrder : function( ) {}, /**Set the drawing order of the view corresponding it this node. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Number} drawingOrderInParent @throws IllegalStateException If called from an AccessibilityService. */ setDrawingOrder : function( ) {}, /**Gets the collection info if the node is a collection. A collection child is always a collection item. @return {Object {android.view.accessibility.AccessibilityNodeInfo.CollectionInfo}} The collection info. */ getCollectionInfo : function( ) {}, /**Sets the collection info if the node is a collection. A collection child is always a collection item. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {AccessibilityNodeInfo.CollectionInfo}} collectionInfo The collection info. */ setCollectionInfo : function( ) {}, /**Gets the collection item info if the node is a collection item. A collection item is always a child of a collection. @return {Object {android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo}} The collection item info. */ getCollectionItemInfo : function( ) {}, /**Sets the collection item info if the node is a collection item. A collection item is always a child of a collection. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> */ setCollectionItemInfo : function( ) {}, /**Gets the range info if this node is a range. @return {Object {android.view.accessibility.AccessibilityNodeInfo.RangeInfo}} The range. */ getRangeInfo : function( ) {}, /**Sets the range info if this node is a range. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {AccessibilityNodeInfo.RangeInfo}} rangeInfo The range info. */ setRangeInfo : function( ) {}, /**Gets if the content of this node is invalid. For example, a date is not well-formed. @return {Boolean} If the node content is invalid. */ isContentInvalid : function( ) {}, /**Sets if the content of this node is invalid. For example, a date is not well-formed. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} contentInvalid If the node content is invalid. */ setContentInvalid : function( ) {}, /**Gets whether this node is context clickable. @return {Boolean} True if the node is context clickable. */ isContextClickable : function( ) {}, /**Sets whether this node is context clickable. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} contextClickable True if the node is context clickable. @throws IllegalStateException If called from an AccessibilityService. */ setContextClickable : function( ) {}, /**Gets the node's live region mode. <p> 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 {@link View#ACCESSIBILITY_LIVE_REGION_POLITE}. <p> It is the responsibility of the accessibility service to monitor {@link android.view.accessibility.AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED} events indicating changes to live region nodes and their children. @return {Number} The live region mode, or {@link View#ACCESSIBILITY_LIVE_REGION_NONE} if the view is not a live region. @see android.view.View#getAccessibilityLiveRegion() */ getLiveRegion : function( ) {}, /**Sets the node's live region mode. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. @param {Number} mode The live region mode, or {@link View#ACCESSIBILITY_LIVE_REGION_NONE} if the view is not a live region. @see android.view.View#setAccessibilityLiveRegion(int) */ setLiveRegion : function( ) {}, /**Gets if the node is a multi line editable text. @return {Boolean} True if the node is multi line. */ isMultiLine : function( ) {}, /**Sets if the node is a multi line editable text. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} multiLine True if the node is multi line. */ setMultiLine : function( ) {}, /**Gets if this node opens a popup or a dialog. @return {Boolean} If the the node opens a popup. */ canOpenPopup : function( ) {}, /**Sets if this node opens a popup or a dialog. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} opensPopup If the the node opens a popup. */ setCanOpenPopup : function( ) {}, /**Gets if the node can be dismissed. @return {Boolean} If the node can be dismissed. */ isDismissable : function( ) {}, /**Sets if the node can be dismissed. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} dismissable If the node can be dismissed. */ setDismissable : function( ) {}, /**Returns whether the node originates from a view considered important for accessibility. @return {Boolean} {@code true} if the node originates from a view considered important for accessibility, {@code false} otherwise @see View#isImportantForAccessibility() */ isImportantForAccessibility : function( ) {}, /**Sets whether the node is considered important for accessibility. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} important {@code true} if the node is considered important for accessibility, {@code false} otherwise */ setImportantForAccessibility : function( ) {}, /**Returns whether the node is explicitly marked as a focusable unit by a screen reader. Note that {@code 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 {@link #isFocusable}(), or the presence of text in a node, to determine what should receive focus. @return {Boolean} {@code true} if the node is specifically marked as a focusable unit for screen readers, {@code false} otherwise. @see View#isScreenReaderFocusable() */ isScreenReaderFocusable : function( ) {}, /**Sets whether the node should be considered a focusable unit by a screen reader. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} screenReaderFocusable {@code true} if the node is a focusable unit for screen readers, {@code false} otherwise. */ setScreenReaderFocusable : function( ) {}, /**Returns whether the node's text represents a hint for the user to enter text. It should only be {@code true} if the node has editable text. @return {Boolean} {@code true} if the text in the node represents a hint to the user, {@code false} otherwise. */ isShowingHintText : function( ) {}, /**Sets whether the node's text represents a hint for the user to enter text. It should only be {@code true} if the node has editable text. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} showingHintText {@code true} if the text in the node represents a hint to the user, {@code false} otherwise. */ setShowingHintText : function( ) {}, /**Returns whether node represents a heading. <p><strong>Note:</strong> Returns {@code true} if either {@link #setHeading}(boolean) marks this node as a heading or if the node has a {@link android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo} that marks it as such, to accomodate apps that use the now-deprecated API.</p> @return {Boolean} {@code true} if the node is a heading, {@code false} otherwise. */ isHeading : function( ) {}, /**Sets whether the node represents a heading. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} isHeading {@code true} if the node is a heading, {@code false} otherwise. */ setHeading : function( ) {}, /**Returns whether node represents a text entry key that is part of a keyboard or keypad. @return {Boolean} {@code true} if the node is a text entry key., {@code false} otherwise. */ isTextEntryKey : function( ) {}, /**Sets whether the node represents a text entry key that is part of a keyboard or keypad. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Boolean} isTextEntryKey {@code true} if the node is a text entry key, {@code false} otherwise. */ setTextEntryKey : function( ) {}, /**Gets the package this node comes from. @return {Object {java.lang.CharSequence}} The package name. */ getPackageName : function( ) {}, /**Sets the package this node comes from. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {CharSequence}} packageName The package name. @throws IllegalStateException If called from an AccessibilityService. */ setPackageName : function( ) {}, /**Gets the class this node comes from. @return {Object {java.lang.CharSequence}} The class name. */ getClassName : function( ) {}, /**Sets the class this node comes from. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {CharSequence}} className The class name. @throws IllegalStateException If called from an AccessibilityService. */ setClassName : function( ) {}, /**Gets the text of this node. <p> <strong>Note:</strong> If the text contains {@link ClickableSpan}s or {@link URLSpan}s, these spans will have been replaced with ones whose {@link ClickableSpan#onClick(View)} can be called from an {@link AccessibilityService}. When called from a service, the {@link View} argument is ignored and the corresponding span will be found on the view that this {@code AccessibilityNodeInfo} represents and called with that view as its argument. <p> This treatment of {@link ClickableSpan}s means that the text returned from this method may different slightly one passed to {@link #setText}(CharSequence), although they will be equivalent according to {@link TextUtils#equals(CharSequence, CharSequence)}. The {@link ClickableSpan#onClick(View)} of any spans, however, will generally not work outside of an accessibility service. </p> @return {Object {java.lang.CharSequence}} The text. */ getText : function( ) {}, /**Get the text passed to setText before any changes to the spans. @hide */ getOriginalText : function( ) {}, /**Sets the text of this node. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {CharSequence}} text The text. @throws IllegalStateException If called from an AccessibilityService. */ setText : function( ) {}, /**Gets the hint text of this node. Only applies to nodes where text can be entered. @return {Object {java.lang.CharSequence}} The hint text. */ getHintText : function( ) {}, /**Sets the hint text of this node. Only applies to nodes where text can be entered. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {CharSequence}} hintText The hint text for this mode. @throws IllegalStateException If called from an AccessibilityService. */ setHintText : function( ) {}, /**Sets the error text of this node. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {CharSequence}} error The error text. @throws IllegalStateException If called from an AccessibilityService. */ setError : function( ) {}, /**Gets the error text of this node. @return {Object {java.lang.CharSequence}} The error text. */ getError : function( ) {}, /**Gets the content description of this node. @return {Object {java.lang.CharSequence}} The content description. */ getContentDescription : function( ) {}, /**Sets the content description of this node. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {CharSequence}} contentDescription The content description. @throws IllegalStateException If called from an AccessibilityService. */ setContentDescription : function( ) {}, /**Gets the tooltip text of this node. @return {Object {java.lang.CharSequence}} The tooltip text. */ getTooltipText : function( ) {}, /**Sets the tooltip text of this node. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {CharSequence}} tooltipText The tooltip text. @throws IllegalStateException If called from an AccessibilityService. */ setTooltipText : function( ) {}, /**Sets the view for which the view represented by this info serves as a label for accessibility purposes. @param {Object {View}} labeled The view for which this info serves as a label. */ setLabelFor : function( ) {}, /**Sets the view for which the view represented by this info serves as a label for accessibility purposes. If <code>virtualDescendantId</code> is {@link View#NO_ID} the root is set as the labeled. <p> 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. </p> <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} root The root whose virtual descendant serves as a label. @param {Number} virtualDescendantId The id of the virtual descendant. */ setLabelFor : function( ) {}, /**Gets the node info for which the view represented by this info serves as a label for accessibility purposes. <p> <strong>Note:</strong> It is a client responsibility to recycle the received info by calling {@link android.view.accessibility.AccessibilityNodeInfo#recycle()} to avoid creating of multiple instances. </p> @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The labeled info. */ getLabelFor : function( ) {}, /**Sets the view which serves as the label of the view represented by this info for accessibility purposes. @param {Object {View}} label The view that labels this node's source. */ setLabeledBy : function( ) {}, /**Sets the view which serves as the label of the view represented by this info for accessibility purposes. If <code>virtualDescendantId</code> is {@link View#NO_ID} the root is set as the label. <p> 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. </p> <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {View}} root The root whose virtual descendant labels this node's source. @param {Number} virtualDescendantId The id of the virtual descendant. */ setLabeledBy : function( ) {}, /**Gets the node info which serves as the label of the view represented by this info for accessibility purposes. <p> <strong>Note:</strong> It is a client responsibility to recycle the received info by calling {@link android.view.accessibility.AccessibilityNodeInfo#recycle()} to avoid creating of multiple instances. </p> @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The label. */ getLabeledBy : function( ) {}, /**Sets the fully qualified resource name of the source view's id. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {String} viewIdResName The id resource name. */ setViewIdResourceName : function( ) {}, /**Gets the fully qualified resource name of the source view's id. <p> <strong>Note:</strong> The primary usage of this API is for UI test automation and in order to report the source view id of an {@link android.view.accessibility.AccessibilityNodeInfo} the client has to set the {@link AccessibilityServiceInfo#FLAG_REPORT_VIEW_IDS} flag when configuring his {@link android.accessibilityservice.AccessibilityService}. </p> @return {String} The id resource name. */ getViewIdResourceName : function( ) {}, /**Gets the text selection start or the cursor position. <p> If no text is selected, both this method and {@link android.view.accessibility.AccessibilityNodeInfo#getTextSelectionEnd()} return the same value: the current location of the cursor. </p> @return {Number} The text selection start, the cursor location if there is no selection, or -1 if there is no text selection and no cursor. */ getTextSelectionStart : function( ) {}, /**Gets the text selection end if text is selected. <p> If no text is selected, both this method and {@link android.view.accessibility.AccessibilityNodeInfo#getTextSelectionStart()} return the same value: the current location of the cursor. </p> @return {Number} The text selection end, the cursor location if there is no selection, or -1 if there is no text selection and no cursor. */ getTextSelectionEnd : function( ) {}, /**Sets the text selection start and end. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Number} start The text selection start. @param {Number} end The text selection end. @throws IllegalStateException If called from an AccessibilityService. */ setTextSelection : function( ) {}, /**Gets the input type of the source as defined by {@link InputType}. @return {Number} The input type. */ getInputType : function( ) {}, /**Sets the input type of the source as defined by {@link InputType}. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Number} inputType The input type. @throws IllegalStateException If called from an AccessibilityService. */ setInputType : function( ) {}, /**Gets an optional bundle with extra data. The bundle is lazily created and never <code>null</code>. <p> <strong>Note:</strong> 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. </p> @return {Object {android.os.Bundle}} The bundle. */ getExtras : function( ) {}, /**Check if a node has an extras bundle @hide */ hasExtras : function( ) {}, /**Get the {@link android.view.accessibility.AccessibilityNodeInfo.TouchDelegateInfo} for touch delegate behavior with the represented view. It is possible for the same node to be pointed to by several regions. Use {@link android.view.accessibility.AccessibilityNodeInfo.TouchDelegateInfo#getRegionAt(int)} to get touch delegate target {@link Region}, and {@link android.view.accessibility.AccessibilityNodeInfo.TouchDelegateInfo#getTargetForRegion(Region)} for {@link android.view.accessibility.AccessibilityNodeInfo} from the given region. @return {Object {android.view.accessibility.AccessibilityNodeInfo.TouchDelegateInfo}} {@link TouchDelegateInfo} or {@code null} if there are no touch delegates. */ getTouchDelegateInfo : function( ) {}, /**Set touch delegate info if the represented view has a {@link TouchDelegate}. <p> <strong>Note:</strong> Cannot be called from an {@link android.accessibilityservice.AccessibilityService}. This class is made immutable before being delivered to an AccessibilityService. </p> @param {Object {AccessibilityNodeInfo.TouchDelegateInfo}} delegatedInfo {@link TouchDelegateInfo} returned from {@link TouchDelegate#getTouchDelegateInfo()}. @throws IllegalStateException If called from an AccessibilityService. */ setTouchDelegateInfo : function( ) {}, /**Sets the unique id of the IAccessibilityServiceConnection over which this instance can send requests to the system. @param {Number} connectionId The connection id. @hide */ setConnectionId : function( ) {}, /**Get the connection ID. @return {Number} The connection id @hide */ getConnectionId : function( ) {}, /**{@inheritDoc} */ describeContents : function( ) {}, /**Sets the id of the source node. @param {Number} sourceId The id. @param {Number} windowId The window id. @hide */ setSourceNodeId : function( ) {}, /**Gets the id of the source node. @return {Number} The id. @hide */ getSourceNodeId : function( ) {}, /**Sets if this instance is sealed. @param {Boolean} sealed Whether is sealed. @hide */ setSealed : function( ) {}, /**Gets if this instance is sealed. @return {Boolean} Whether is sealed. @hide */ isSealed : function( ) {}, /**Returns a cached instance if such is available otherwise a new one and sets the source. @param {Object {View}} source The source view. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} An instance. @see #setSource(View) */ obtain : function( ) {}, /**Returns a cached instance if such is available otherwise a new one and sets the source. @param {Object {View}} root The root of the virtual subtree. @param {Number} virtualDescendantId The id of the virtual descendant. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} An instance. @see #setSource(View, int) */ obtain : function( ) {}, /**Returns a cached instance if such is available otherwise a new one. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} An instance. */ obtain : function( ) {}, /**Returns a cached instance if such is available or a new one is create. The returned instance is initialized from the given <code>info</code>. @param {Object {AccessibilityNodeInfo}} info The other info. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} An instance. */ obtain : function( ) {}, /**Return an instance back to be reused. <p> <strong>Note:</strong> You must not touch the object after calling this function. @throws IllegalStateException If the info is already recycled. */ recycle : function( ) {}, /**Specify a counter that will be incremented on obtain() and decremented on recycle() @hide */ setNumInstancesInUseCounter : function( ) {}, /**{@inheritDoc} <p> <strong>Note:</strong> After the instance is written to a parcel it is recycled. You must not touch the object after calling this function. </p> */ writeToParcel : function( ) {}, /** @hide */ writeToParcelNoRecycle : function( ) {}, /** */ equals : function( ) {}, /** */ hashCode : function( ) {}, /** */ toString : function( ) {}, /** @hide */ idToString : function( ) {}, };