# AssistStructure.ViewNode

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# ViewNode

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode "View this page in Java")  

```
open class ViewNode
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                             ||
| ↳ | [android.app.assist.AssistStructure.ViewNode](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#) |

Describes a single view in the assist data.

## Summary

|                                                                                                                                                                        Constants                                                                                                                                                                         ||
|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TEXT_COLOR_UNDEFINED](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_COLOR_UNDEFINED:kotlin.Int) Magic value for text color that has not been defined, which is very unlikely to be confused with a real text color. |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TEXT_STYLE_BOLD](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_BOLD:kotlin.Int) <br />                                                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TEXT_STYLE_ITALIC](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_ITALIC:kotlin.Int) <br />                                                                                                                    |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TEXT_STYLE_STRIKE_THRU](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_STRIKE_THRU:kotlin.Int) <br />                                                                                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TEXT_STYLE_UNDERLINE](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_UNDERLINE:kotlin.Int) <br />                                                                                                              |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)                                                                                                    | [getAlpha](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getAlpha())`()` Returns the alpha transformation of the view, used to reduce the overall opacity of the view's contents, as set by[ViewStructure.setAlpha(float)](https://developer.android.com/reference/kotlin/android/view/ViewStructure.html#setAlpha(kotlin.Float)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| open[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>?              | [getAutofillHints](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getAutofillHints())`()` Describes the content of a view so that a autofill service can fill in the appropriate data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| open[AutofillId](https://developer.android.com/reference/kotlin/android/view/autofill/AutofillId.html#)?                                                                              | [getAutofillId](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getAutofillId())`()` Gets the id that can be used to autofill the view contents.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| open[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!\>? | [getAutofillOptions](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getAutofillOptions())`()` Gets the options that can be used to autofill this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getAutofillType](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getAutofillType())`()` Gets the type of value that can be used to autofill the view contents.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| open[AutofillValue](https://developer.android.com/reference/kotlin/android/view/autofill/AutofillValue.html#)?                                                                        | [getAutofillValue](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getAutofillValue())`()` Gets the value of this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| open[AssistStructure.ViewNode](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#)!                                                          | [getChildAt](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getChildAt(kotlin.Int))`(`index:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Return a child of this node, given an index value from 0 to[getChildCount()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getChildCount())-1.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getChildCount](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getChildCount())`()` Return the number of children this node has.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                 | [getClassName](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getClassName())`()` Returns the class name of the node's implementation, indicating its behavior.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| open[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)?                                                                                    | [getContentDescription](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getContentDescription())`()` Returns any content description associated with the node, which semantically describes its purpose for accessibility and other uses.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| open[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)                                                                                                    | [getElevation](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getElevation())`()` Returns the visual elevation of the view, used for shadowing and other visual characterstics, as set by[ViewStructure.setElevation(float)](https://developer.android.com/reference/kotlin/android/view/ViewStructure.html#setElevation(kotlin.Float)).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| open[Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html#)?                                                                                                 | [getExtras](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getExtras())`()` Return a Bundle containing optional vendor-specific extension information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getHeight](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getHeight())`()` Returns the height of this view, in pixels.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                 | [getHint](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getHint())`()` 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                 | [getHintIdEntry](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getHintIdEntry())`()` Gets the identifier used to set the hint associated with this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| open[ViewStructure.HtmlInfo](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo.html#)?                                                               | [getHtmlInfo](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getHtmlInfo())`()` Returns the HTML properties associated with this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getId](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getId())`()` Returns the ID associated with this view, as per[View.getId()](https://developer.android.com/reference/kotlin/android/view/View.html#getId()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                 | [getIdEntry](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getIdEntry())`()` If[getId()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getId())is a resource identifier, this is the entry name of that identifier.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                 | [getIdPackage](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getIdPackage())`()` If[getId()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getId())is a resource identifier, this is the package name of that identifier.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                 | [getIdType](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getIdType())`()` If[getId()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getId())is a resource identifier, this is the type name of that identifier.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getImportantForAutofill](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getImportantForAutofill())`()` Gets the[importantForAutofill mode](https://developer.android.com/reference/kotlin/android/view/View.html#setImportantForAutofill(kotlin.Int))of the view associated with this node.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getInputType](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getInputType())`()` Gets the[android.text.InputType](https://developer.android.com/reference/kotlin/android/text/InputType.html#)bits of this structure.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getLeft](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getLeft())`()` Returns the left edge of this view, in pixels, relative to the left edge of its parent.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| open[LocaleList](https://developer.android.com/reference/kotlin/android/os/LocaleList.html#)?                                                                                         | [getLocaleList](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getLocaleList())`()` Returns the list of locales associated with this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getMaxTextEms](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getMaxTextEms())`()` Returns the maximum width in ems of the text associated with this node, or`-1`if not supported by the node.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getMaxTextLength](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getMaxTextLength())`()` Returns the maximum length of the text associated with this node, or`-1`if not supported by the node or not set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getMinTextEms](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getMinTextEms())`()` Returns the minimum width in ems of the text associated with this node, or`-1`if not supported by the node.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| open[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>?              | [getReceiveContentMimeTypes](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getReceiveContentMimeTypes())`()` Returns the MIME types accepted by[View.performReceiveContent](https://developer.android.com/reference/kotlin/android/view/View.html#performReceiveContent(android.view.ContentInfo))for this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getScrollX](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getScrollX())`()` Returns the current X scroll offset of this view, as per[View.getScrollX()](https://developer.android.com/reference/kotlin/android/view/View.html#getScrollX()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getScrollY](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getScrollY())`()` Returns the current Y scroll offset of this view, as per[View.getScrollY()](https://developer.android.com/reference/kotlin/android/view/View.html#getScrollX()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| open[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)?                                                                                    | [getText](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())`()` Returns any text associated with the node that is displayed to the user, or null if there is none.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getTextBackgroundColor](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextBackgroundColor())`()` If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is the main text background color associated with it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getTextColor](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextColor())`()` If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is the main text color associated with it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                 | [getTextIdEntry](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextIdEntry())`()` Gets the identifier used to set the text associated with this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| open[IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)?                                                                                            | [getTextLineBaselines](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextLineBaselines())`()` Return per-line baselines into the text returned by[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| open[IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)?                                                                                            | [getTextLineCharOffsets](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextLineCharOffsets())`()` Return per-line offsets into the text returned by[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getTextSelectionEnd](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextSelectionEnd())`()` If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is where the current selection starts.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getTextSelectionStart](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextSelectionStart())`()` If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is where the current selection starts.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| open[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)                                                                                                    | [getTextSize](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextSize())`()` If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is the main text size (in pixels) associated with it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getTextStyle](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextStyle())`()` If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is the main text style associated with it, containing a bit mask of[TEXT_STYLE_BOLD](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_BOLD:kotlin.Int),[TEXT_STYLE_BOLD](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_BOLD:kotlin.Int),[TEXT_STYLE_STRIKE_THRU](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_STRIKE_THRU:kotlin.Int), and/or[TEXT_STYLE_UNDERLINE](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_UNDERLINE:kotlin.Int). |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getTop](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTop())`()` Returns the top edge of this view, in pixels, relative to the top edge of its parent.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| open[Matrix](https://developer.android.com/reference/kotlin/android/graphics/Matrix.html#)!                                                                                           | [getTransformation](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTransformation())`()` Returns the transformation that has been applied to this view, such as a translation or scaling.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getVisibility](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getVisibility())`()` Returns the visibility mode of this view, as per[View.getVisibility()](https://developer.android.com/reference/kotlin/android/view/View.html#getVisibility()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                 | [getWebDomain](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getWebDomain())`()` Returns the domain of the HTML document represented by this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?                                                                                                 | [getWebScheme](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getWebScheme())`()` Returns the scheme of the HTML document represented by this view.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getWidth](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getWidth())`()` Returns the width of this view, in pixels.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isAccessibilityFocused](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isAccessibilityFocused())`()` Returns true if this node currently had accessibility focus at the time that the structure was collected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isActivated](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isActivated())`()` Returns true if this node has currently been activated by the user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isAssistBlocked](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isAssistBlocked())`()` Returns true if assist data has been blocked starting at this node in the hierarchy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isCheckable](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isCheckable())`()` Returns true if this node represents something that is checkable by the user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isChecked](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isChecked())`()` Returns true if this node is currently in a checked state.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isClickable](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isClickable())`()` Returns true if this node is clickable by the user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isContextClickable](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isContextClickable())`()` Returns true if this node is something the user can perform a context click on.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isEnabled](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isEnabled())`()` Returns true if this node is in an enabled state.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isFocusable](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isFocusable())`()` Returns true if this node can take input focus.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isFocused](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isFocused())`()` Returns true if this node currently had input focus at the time that the structure was collected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isLongClickable](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isLongClickable())`()` Returns true if this node is something the user can perform a long click/press on.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isOpaque](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isOpaque())`()` Returns true if this node is opaque.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isSelected](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#isSelected())`()` Returns true if this node has currently been selected by the user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |

## Constants

### TEXT_COLOR_UNDEFINED

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val TEXT_COLOR_UNDEFINED: Int
```

Magic value for text color that has not been defined, which is very unlikely to be confused with a real text color.  

    Value: 1

### TEXT_STYLE_BOLD

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val TEXT_STYLE_BOLD: Int
```  

    Value: 1

### TEXT_STYLE_ITALIC

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val TEXT_STYLE_ITALIC: Int
```  

    Value: 2

### TEXT_STYLE_STRIKE_THRU

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val TEXT_STYLE_STRIKE_THRU: Int
```  

    Value: 8

### TEXT_STYLE_UNDERLINE

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val TEXT_STYLE_UNDERLINE: Int
```  

    Value: 4

## Public methods

### getAlpha

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getAlpha(): Float
```

Returns the alpha transformation of the view, used to reduce the overall opacity of the view's contents, as set by[ViewStructure.setAlpha(float)](https://developer.android.com/reference/kotlin/android/view/ViewStructure.html#setAlpha(kotlin.Float)).

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getAutofillHints

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getAutofillHints(): Array<String!>?
```

Describes the content of a view so that a autofill service can fill in the appropriate data.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes, not for Assist - see[View.getAutofillHints()](https://developer.android.com/reference/kotlin/android/view/View.html#getAutofillHints())for more info.

|                                                                                                                             Return                                                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>? | The autofill hints for this view, or`null`if the structure was created for assist purposes. |

### getAutofillId

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getAutofillId(): AutofillId?
```

Gets the id that can be used to autofill the view contents.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes.

|                                                                                                       Return                                                                                                       ||
|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|
| [AutofillId](https://developer.android.com/reference/kotlin/android/view/autofill/AutofillId.html#)? | id that can be used to autofill the view contents, or`null`if the structure was created for assist purposes. |

### getAutofillOptions

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getAutofillOptions(): Array<CharSequence!>?
```

Gets the options that can be used to autofill this view.

Typically used by nodes whose[View.getAutofillType()](https://developer.android.com/reference/kotlin/android/view/View.html#getAutofillType())is a list to indicate the meaning of each possible value in the list.

It's relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes, not for assist purposes.

|                                                                                                                                             Return                                                                                                                                             ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!>? | the options that can be used to autofill this view, or`null`if the structure was created for assist purposes. |

### getAutofillType

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getAutofillType(): Int
```

Gets the type of value that can be used to autofill the view contents.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes.

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Return                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ||
|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | autofill type as defined by[View.getAutofillType()](https://developer.android.com/reference/kotlin/android/view/View.html#getAutofillType()), or[View.AUTOFILL_TYPE_NONE](https://developer.android.com/reference/kotlin/android/view/View.html#AUTOFILL_TYPE_NONE:kotlin.Int)if the structure was created for assist purposes. Value is[android.view.View#AUTOFILL_TYPE_NONE](https://developer.android.com/reference/kotlin/android/view/View.html#AUTOFILL_TYPE_NONE:kotlin.Int),[android.view.View#AUTOFILL_TYPE_TEXT](https://developer.android.com/reference/kotlin/android/view/View.html#AUTOFILL_TYPE_TEXT:kotlin.Int),[android.view.View#AUTOFILL_TYPE_TOGGLE](https://developer.android.com/reference/kotlin/android/view/View.html#AUTOFILL_TYPE_TOGGLE:kotlin.Int),[android.view.View#AUTOFILL_TYPE_LIST](https://developer.android.com/reference/kotlin/android/view/View.html#AUTOFILL_TYPE_LIST:kotlin.Int), or[android.view.View#AUTOFILL_TYPE_DATE](https://developer.android.com/reference/kotlin/android/view/View.html#AUTOFILL_TYPE_DATE:kotlin.Int) |

### getAutofillValue

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getAutofillValue(): AutofillValue?
```

Gets the value of this view.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes, not for assist purposes.

|                                                                                                 Return                                                                                                 ||
|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|
| [AutofillValue](https://developer.android.com/reference/kotlin/android/view/autofill/AutofillValue.html#)? | the autofill value of this view, or`null`if the structure was created for assist purposes. |

### getChildAt

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getChildAt(index: Int): AssistStructure.ViewNode!
```

Return a child of this node, given an index value from 0 to[getChildCount()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getChildCount())-1.  

### getChildCount

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getChildCount(): Int
```

Return the number of children this node has.  

### getClassName

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getClassName(): String?
```

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[android.widget.Button](https://developer.android.com/reference/kotlin/android/widget/Button.html#).

|                                                   Return                                                    ||
|-----------------------------------------------------------------------------------|--------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | This value may be`null`. |

### getContentDescription

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getContentDescription(): CharSequence?
```

Returns any content description associated with the node, which semantically describes its purpose for accessibility and other uses.

|                                                          Return                                                          ||
|------------------------------------------------------------------------------------------------|--------------------------|
| [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)? | This value may be`null`. |

### getElevation

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getElevation(): Float
```

Returns the visual elevation of the view, used for shadowing and other visual characterstics, as set by[ViewStructure.setElevation(float)](https://developer.android.com/reference/kotlin/android/view/ViewStructure.html#setElevation(kotlin.Float)).

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getExtras

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getExtras(): Bundle?
```

Return a Bundle containing optional vendor-specific extension information.

|                                                   Return                                                    ||
|-----------------------------------------------------------------------------------|--------------------------|
| [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html#)? | This value may be`null`. |

### getHeight

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getHeight(): Int
```

Returns the height of this view, in pixels.  

### getHint

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getHint(): String?
```

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.

|                                                   Return                                                    ||
|-----------------------------------------------------------------------------------|--------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | This value may be`null`. |

### getHintIdEntry

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getHintIdEntry(): String?
```

Gets the identifier used to set the hint associated with this view.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes, not for assist purposes.

|                                                   Return                                                    ||
|-----------------------------------------------------------------------------------|--------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | This value may be`null`. |

### getHtmlInfo

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getHtmlInfo(): ViewStructure.HtmlInfo?
```

Returns the HTML properties associated with this view.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes, not for assist purposes.

|                                                                                                            Return                                                                                                             ||
|---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
| [ViewStructure.HtmlInfo](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo.html#)? | the HTML properties associated with this view, or`null`if the structure was created for assist purposes. |

### getId

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getId(): Int
```

Returns the ID associated with this view, as per[View.getId()](https://developer.android.com/reference/kotlin/android/view/View.html#getId()).  

### getIdEntry

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getIdEntry(): String?
```

If[getId()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getId())is a resource identifier, this is the entry name of that identifier. See[ViewStructure.setId](https://developer.android.com/reference/kotlin/android/view/ViewStructure.html#setId(kotlin.Int,%20kotlin.String,%20kotlin.String,%20kotlin.String))for more information.

|                                                   Return                                                    ||
|-----------------------------------------------------------------------------------|--------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | This value may be`null`. |

### getIdPackage

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getIdPackage(): String?
```

If[getId()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getId())is a resource identifier, this is the package name of that identifier. See[ViewStructure.setId](https://developer.android.com/reference/kotlin/android/view/ViewStructure.html#setId(kotlin.Int,%20kotlin.String,%20kotlin.String,%20kotlin.String))for more information.

|                                                   Return                                                    ||
|-----------------------------------------------------------------------------------|--------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | This value may be`null`. |

### getIdType

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getIdType(): String?
```

If[getId()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getId())is a resource identifier, this is the type name of that identifier. See[ViewStructure.setId](https://developer.android.com/reference/kotlin/android/view/ViewStructure.html#setId(kotlin.Int,%20kotlin.String,%20kotlin.String,%20kotlin.String))for more information.

|                                                   Return                                                    ||
|-----------------------------------------------------------------------------------|--------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | This value may be`null`. |

### getImportantForAutofill

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getImportantForAutofill(): Int
```

Gets the[importantForAutofill mode](https://developer.android.com/reference/kotlin/android/view/View.html#setImportantForAutofill(kotlin.Int))of the view associated with this node.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes.

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Return                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ||
|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | Value is[android.view.View#IMPORTANT_FOR_AUTOFILL_AUTO](https://developer.android.com/reference/kotlin/android/view/View.html#IMPORTANT_FOR_AUTOFILL_AUTO:kotlin.Int),[android.view.View#IMPORTANT_FOR_AUTOFILL_YES](https://developer.android.com/reference/kotlin/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES:kotlin.Int),[android.view.View#IMPORTANT_FOR_AUTOFILL_NO](https://developer.android.com/reference/kotlin/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO:kotlin.Int),[android.view.View#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS](https://developer.android.com/reference/kotlin/android/view/View.html#IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS:kotlin.Int), or[android.view.View#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS](https://developer.android.com/reference/kotlin/android/view/View.html#IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS:kotlin.Int) |

### getInputType

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getInputType(): Int
```

Gets the[android.text.InputType](https://developer.android.com/reference/kotlin/android/text/InputType.html#)bits of this structure.

|                                                                                                Return                                                                                                ||
|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | bits as defined by[android.text.InputType](https://developer.android.com/reference/kotlin/android/text/InputType.html#). |

### getLeft

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getLeft(): Int
```

Returns the left edge of this view, in pixels, relative to the left edge of its parent.  

### getLocaleList

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getLocaleList(): LocaleList?
```

Returns the list of locales associated with this view.

|                                                       Return                                                        ||
|-------------------------------------------------------------------------------------------|--------------------------|
| [LocaleList](https://developer.android.com/reference/kotlin/android/os/LocaleList.html#)? | This value may be`null`. |

### getMaxTextEms

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMaxTextEms(): Int
```

Returns the maximum width in ems of the text associated with this node, or`-1`if not supported by the node.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes, not for assist purposes.  

### getMaxTextLength

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMaxTextLength(): Int
```

Returns the maximum length of the text associated with this node, or`-1`if not supported by the node or not set. System may set a default value if the text length is not set.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes, not for assist purposes.  

### getMinTextEms

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMinTextEms(): Int
```

Returns the minimum width in ems of the text associated with this node, or`-1`if not supported by the node.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes, not for assist purposes.  

### getReceiveContentMimeTypes

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getReceiveContentMimeTypes(): Array<String!>?
```

Returns the MIME types accepted by[View.performReceiveContent](https://developer.android.com/reference/kotlin/android/view/View.html#performReceiveContent(android.view.ContentInfo))for this view. See[View.getReceiveContentMimeTypes()](https://developer.android.com/reference/kotlin/android/view/View.html#getReceiveContentMimeTypes())for details.

|                                                                                            Return                                                                                            ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------|
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>? | This value may be`null`. |

### getScrollX

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getScrollX(): Int
```

Returns the current X scroll offset of this view, as per[View.getScrollX()](https://developer.android.com/reference/kotlin/android/view/View.html#getScrollX()).  

### getScrollY

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getScrollY(): Int
```

Returns the current Y scroll offset of this view, as per[View.getScrollY()](https://developer.android.com/reference/kotlin/android/view/View.html#getScrollX()).  

### getText

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getText(): CharSequence?
```

Returns any text associated with the node that is displayed to the user, or null if there is none.

The text will be stripped of any spans that could potentially contain reference to the activity context, to avoid memory leak. If the text contained a span, a plain string version of the text will be returned.  

### getTextBackgroundColor

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTextBackgroundColor(): Int
```

If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is the main text background color associated with it. If there is no text background color,[TEXT_COLOR_UNDEFINED](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_COLOR_UNDEFINED:kotlin.Int)is returned. Note that the text may also contain style spans that modify the color of specific parts of the text.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getTextColor

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTextColor(): Int
```

If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is the main text color associated with it. If there is no text color,[TEXT_COLOR_UNDEFINED](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_COLOR_UNDEFINED:kotlin.Int)is returned. Note that the text may also contain style spans that modify the color of specific parts of the text.  

### getTextIdEntry

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTextIdEntry(): String?
```

Gets the identifier used to set the text associated with this view.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for autofill purposes, not for assist purposes.

|                                                   Return                                                    ||
|-----------------------------------------------------------------------------------|--------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | This value may be`null`. |

### getTextLineBaselines

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTextLineBaselines(): IntArray?
```

Return per-line baselines into the text returned by[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#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.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getTextLineCharOffsets

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTextLineCharOffsets(): IntArray?
```

Return per-line offsets into the text returned by[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#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.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getTextSelectionEnd

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTextSelectionEnd(): Int
```

If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is where the current selection starts. If there is no selection, returns the same value as[getTextSelectionStart()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getTextSelectionStart()), indicating the cursor position.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getTextSelectionStart

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTextSelectionStart(): Int
```

If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is where the current selection starts.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getTextSize

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTextSize(): Float
```

If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#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.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getTextStyle

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTextStyle(): Int
```

If[getText()](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#getText())is non-null, this is the main text style associated with it, containing a bit mask of[TEXT_STYLE_BOLD](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_BOLD:kotlin.Int),[TEXT_STYLE_BOLD](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_BOLD:kotlin.Int),[TEXT_STYLE_STRIKE_THRU](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_STRIKE_THRU:kotlin.Int), and/or[TEXT_STYLE_UNDERLINE](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode#TEXT_STYLE_UNDERLINE:kotlin.Int). Note that the text may also contain style spans that modify the style of specific parts of the text.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getTop

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTop(): Int
```

Returns the top edge of this view, in pixels, relative to the top edge of its parent.  

### getTransformation

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getTransformation(): Matrix!
```

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.

It's only relevant when the[AssistStructure](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure)is used for assist purposes, not for autofill purposes.  

### getVisibility

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getVisibility(): Int
```

Returns the visibility mode of this view, as per[View.getVisibility()](https://developer.android.com/reference/kotlin/android/view/View.html#getVisibility()).  

### getWebDomain

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getWebDomain(): String?
```

Returns the domain of the HTML document represented by this view.

Typically used when the view associated with the view is a container for an HTML document.

**Warning:** an autofill service cannot trust the value reported by this method without verifing its authenticity---see the "Web security" section of[android.service.autofill.AutofillService](https://developer.android.com/reference/kotlin/android/service/autofill/AutofillService.html#)for more details.

|                                                                                                                     Return                                                                                                                      ||
|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | domain-only part of the document. For example, if the full URL is`https://example.com/login?user=my_user`, it returns`example.com`. This value may be`null`. |

### getWebScheme

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getWebScheme(): String?
```

Returns the scheme of the HTML document represented by this view.

Typically used when the view associated with the view is a container for an HTML document.

|                                                                                                                  Return                                                                                                                   ||
|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | scheme-only part of the document. For example, if the full URL is`https://example.com/login?user=my_user`, it returns`https`. This value may be`null`. |

### getWidth

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getWidth(): Int
```

Returns the width of this view, in pixels.  

### isAccessibilityFocused

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isAccessibilityFocused(): Boolean
```

Returns true if this node currently had accessibility focus at the time that the structure was collected.  

### isActivated

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isActivated(): Boolean
```

Returns true if this node has currently been activated by the user.  

### isAssistBlocked

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isAssistBlocked(): Boolean
```

Returns true if assist data has been blocked starting at this node in the hierarchy.  

### isCheckable

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isCheckable(): Boolean
```

Returns true if this node represents something that is checkable by the user.  

### isChecked

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isChecked(): Boolean
```

Returns true if this node is currently in a checked state.  

### isClickable

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isClickable(): Boolean
```

Returns true if this node is clickable by the user.  

### isContextClickable

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isContextClickable(): Boolean
```

Returns true if this node is something the user can perform a context click on.  

### isEnabled

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isEnabled(): Boolean
```

Returns true if this node is in an enabled state.  

### isFocusable

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isFocusable(): Boolean
```

Returns true if this node can take input focus.  

### isFocused

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isFocused(): Boolean
```

Returns true if this node currently had input focus at the time that the structure was collected.  

### isLongClickable

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isLongClickable(): Boolean
```

Returns true if this node is something the user can perform a long click/press on.  

### isOpaque

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isOpaque(): Boolean
```

Returns true if this node is opaque.  

### isSelected

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isSelected(): Boolean
```

Returns true if this node has currently been selected by the user.