/**@class android.app.assist.AssistStructure.ViewNode @extends java.lang.Object Describes a single view in the assist data. */ var ViewNode = { /** Magic value for text color that has not been defined, which is very unlikely to be confused with a real text color. */ TEXT_COLOR_UNDEFINED : "1", /***/ TEXT_STYLE_BOLD : "1", /***/ TEXT_STYLE_ITALIC : "2", /***/ TEXT_STYLE_UNDERLINE : "4", /***/ TEXT_STYLE_STRIKE_THRU : "8", /**Returns the ID associated with this view, as per {@link View#getId() View.getId()}. */ getId : function( ) {}, /**If {@link #getId}() is a resource identifier, this is the package name of that identifier. See {@link android.view.ViewStructure#setId ViewStructure.setId} for more information. */ getIdPackage : function( ) {}, /**If {@link #getId}() is a resource identifier, this is the type name of that identifier. See {@link android.view.ViewStructure#setId ViewStructure.setId} for more information. */ getIdType : function( ) {}, /**If {@link #getId}() is a resource identifier, this is the entry name of that identifier. See {@link android.view.ViewStructure#setId ViewStructure.setId} for more information. */ getIdEntry : function( ) {}, /**Gets the id that can be used to autofill the view contents. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes. @return {Object {android.view.autofill.AutofillId}} id that can be used to autofill the view contents, or {@code null} if the structure was created for assist purposes. */ getAutofillId : function( ) {}, /**Gets the type of value that can be used to autofill the view contents. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes. @return {Number} autofill type as defined by {@link View#getAutofillType()}, or {@link View#AUTOFILL_TYPE_NONE} if the structure was created for assist purposes. */ getAutofillType : function( ) {}, /**Describes the content of a view so that a autofill service can fill in the appropriate data. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes, not for Assist - see {@link View#getAutofillHints()} for more info. @return {String} The autofill hints for this view, or {@code null} if the structure was created for assist purposes. */ getAutofillHints : function( ) {}, /**Gets the value of this view. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes, not for assist purposes. @return {Object {android.view.autofill.AutofillValue}} the autofill value of this view, or {@code null} if the structure was created for assist purposes. */ getAutofillValue : function( ) {}, /** @hide */ setAutofillOverlay : function( ) {}, /**Gets the options that can be used to autofill this view. <p>Typically used by nodes whose {@link View#getAutofillType()} is a list to indicate the meaning of each possible value in the list. <p>It's relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes, not for assist purposes. @return {Object {java.lang.CharSequence}} the options that can be used to autofill this view, or {@code null} if the structure was created for assist purposes. */ getAutofillOptions : function( ) {}, /**Gets the {@link android.text.InputType} bits of this structure. @return {Number} bits as defined by {@link android.text.InputType}. */ getInputType : function( ) {}, /** @hide */ isSanitized : function( ) {}, /**Updates the {@link AutofillValue} of this structure. <p>Should be used just before sending the structure to the {@link android.service.autofill.AutofillService} for saving, since it will override the initial value. @hide */ updateAutofillValue : function( ) {}, /**Returns the left edge of this view, in pixels, relative to the left edge of its parent. */ getLeft : function( ) {}, /**Returns the top edge of this view, in pixels, relative to the top edge of its parent. */ getTop : function( ) {}, /**Returns the current X scroll offset of this view, as per {@link android.view.View#getScrollX() View.getScrollX()}. */ getScrollX : function( ) {}, /**Returns the current Y scroll offset of this view, as per {@link android.view.View#getScrollX() View.getScrollY()}. */ getScrollY : function( ) {}, /**Returns the width of this view, in pixels. */ getWidth : function( ) {}, /**Returns the height of this view, in pixels. */ getHeight : function( ) {}, /**Returns the transformation that has been applied to this view, such as a translation or scaling. The returned Matrix object is owned by ViewNode; do not modify it. Returns null if there is no transformation applied to the view. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getTransformation : function( ) {}, /**Returns the visual elevation of the view, used for shadowing and other visual characterstics, as set by {@link ViewStructure#setElevation ViewStructure.setElevation(float)}. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getElevation : function( ) {}, /**Returns the alpha transformation of the view, used to reduce the overall opacity of the view's contents, as set by {@link ViewStructure#setAlpha ViewStructure.setAlpha(float)}. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getAlpha : function( ) {}, /**Returns the visibility mode of this view, as per {@link android.view.View#getVisibility() View.getVisibility()}. */ getVisibility : function( ) {}, /**Returns true if assist data has been blocked starting at this node in the hierarchy. */ isAssistBlocked : function( ) {}, /**Returns true if this node is in an enabled state. */ isEnabled : function( ) {}, /**Returns true if this node is clickable by the user. */ isClickable : function( ) {}, /**Returns true if this node can take input focus. */ isFocusable : function( ) {}, /**Returns true if this node currently had input focus at the time that the structure was collected. */ isFocused : function( ) {}, /**Returns true if this node currently had accessibility focus at the time that the structure was collected. */ isAccessibilityFocused : function( ) {}, /**Returns true if this node represents something that is checkable by the user. */ isCheckable : function( ) {}, /**Returns true if this node is currently in a checked state. */ isChecked : function( ) {}, /**Returns true if this node has currently been selected by the user. */ isSelected : function( ) {}, /**Returns true if this node has currently been activated by the user. */ isActivated : function( ) {}, /**Returns true if this node is opaque. */ isOpaque : function( ) {}, /**Returns true if this node is something the user can perform a long click/press on. */ isLongClickable : function( ) {}, /**Returns true if this node is something the user can perform a context click on. */ isContextClickable : function( ) {}, /**Returns the class name of the node's implementation, indicating its behavior. For example, a button will report "android.widget.Button" meaning it behaves like a {@link android.widget.Button}. */ getClassName : function( ) {}, /**Returns any content description associated with the node, which semantically describes its purpose for accessibility and other uses. */ getContentDescription : function( ) {}, /**Returns the domain of the HTML document represented by this view. <p>Typically used when the view associated with the view is a container for an HTML document. <p><b>Warning:</b> an autofill service cannot trust the value reported by this method without verifing its authenticity—see the "Web security" section of {@link android.service.autofill.AutofillService} for more details. @return {String} domain-only part of the document. For example, if the full URL is {@code https://example.com/login?user=my_user}, it returns {@code example.com}. */ getWebDomain : function( ) {}, /** @hide */ setWebDomain : function( ) {}, /**Returns the scheme of the HTML document represented by this view. <p>Typically used when the view associated with the view is a container for an HTML document. @return {String} scheme-only part of the document. For example, if the full URL is {@code https://example.com/login?user=my_user}, it returns {@code https}. */ getWebScheme : function( ) {}, /**Returns the HTML properties associated with this view. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes, not for assist purposes. @return {Object {android.view.ViewStructure.HtmlInfo}} the HTML properties associated with this view, or {@code null} if the structure was created for assist purposes. */ getHtmlInfo : function( ) {}, /**Returns the list of locales associated with this view. */ getLocaleList : function( ) {}, /**Returns any text associated with the node that is displayed to the user, or null if there is none. */ getText : function( ) {}, /**If {@link #getText}() is non-null, this is where the current selection starts. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getTextSelectionStart : function( ) {}, /**If {@link #getText}() is non-null, this is where the current selection starts. If there is no selection, returns the same value as {@link #getTextSelectionStart}(), indicating the cursor position. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getTextSelectionEnd : function( ) {}, /**If {@link #getText}() is non-null, this is the main text color associated with it. If there is no text color, {@link #TEXT_COLOR_UNDEFINED} is returned. Note that the text may also contain style spans that modify the color of specific parts of the text. */ getTextColor : function( ) {}, /**If {@link #getText}() is non-null, this is the main text background color associated with it. If there is no text background color, {@link #TEXT_COLOR_UNDEFINED} is returned. Note that the text may also contain style spans that modify the color of specific parts of the text. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getTextBackgroundColor : function( ) {}, /**If {@link #getText}() is non-null, this is the main text size (in pixels) associated with it. Note that the text may also contain style spans that modify the size of specific parts of the text. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getTextSize : function( ) {}, /**If {@link #getText}() is non-null, this is the main text style associated with it, containing a bit mask of {@link #TEXT_STYLE_BOLD}, {@link #TEXT_STYLE_BOLD}, {@link #TEXT_STYLE_STRIKE_THRU}, and/or {@link #TEXT_STYLE_UNDERLINE}. Note that the text may also contain style spans that modify the style of specific parts of the text. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getTextStyle : function( ) {}, /**Return per-line offsets into the text returned by {@link #getText}(). Each entry in the array is a formatted line of text, and the value it contains is the offset into the text string where that line starts. May return null if there is no line information. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getTextLineCharOffsets : function( ) {}, /**Return per-line baselines into the text returned by {@link #getText}(). Each entry in the array is a formatted line of text, and the value it contains is the baseline where that text appears in the view. May return null if there is no line information. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for assist purposes, not for autofill purposes. */ getTextLineBaselines : function( ) {}, /**Gets the identifier used to set the text associated with this view. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes, not for assist purposes. */ getTextIdEntry : function( ) {}, /**Return additional hint text associated with the node; this is typically used with a node that takes user input, describing to the user what the input means. */ getHint : function( ) {}, /**Return a Bundle containing optional vendor-specific extension information. */ getExtras : function( ) {}, /**Return the number of children this node has. */ getChildCount : function( ) {}, /**Return a child of this node, given an index value from 0 to {@link #getChildCount}()-1. */ getChildAt : function( ) {}, /**Returns the minimum width in ems of the text associated with this node, or {@code -1} if not supported by the node. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes, not for assist purposes. */ getMinTextEms : function( ) {}, /**Returns the maximum width in ems of the text associated with this node, or {@code -1} if not supported by the node. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes, not for assist purposes. */ getMaxTextEms : function( ) {}, /**Returns the maximum length of the text associated with this node node, or {@code -1} if not supported by the node or not set. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes, not for assist purposes. */ getMaxTextLength : function( ) {}, /**Gets the {@link View#setImportantForAutofill(int) importantForAutofill mode} of the view associated with this node. <p>It's only relevant when the {@link android.app.assist.AssistStructure} is used for autofill purposes. */ getImportantForAutofill : function( ) {}, };