# AssistStructure.WindowNode

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

# WindowNode

*** ** * ** ***

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

```
open class WindowNode
```

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

Describes a window in the assist data.

## Summary

|                                                                                                                                                                                                                                Public methods                                                                                                                                                                                                                                ||
|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                              | [getDisplayId](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.WindowNode#getDisplayId())`()` Returns the ID of the display this window is on, for use with[DisplayManager.getDisplay()](https://developer.android.com/reference/kotlin/android/hardware/display/DisplayManager.html#getDisplay(kotlin.Int)). |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                              | [getHeight](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.WindowNode#getHeight())`()` Returns the total height of the window in pixels.                                                                                                                                                                     |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                              | [getLeft](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.WindowNode#getLeft())`()` Returns the left edge of the window, in pixels, relative to the left edge of the screen.                                                                                                                                  |
| open[AssistStructure.ViewNode](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode)! | [getRootViewNode](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.WindowNode#getRootViewNode())`()` Returns the[ViewNode](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode)containing the root content of the window.                                               |
| open[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!                          | [getTitle](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.WindowNode#getTitle())`()` Returns the title associated with the window, if it has one.                                                                                                                                                            |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                              | [getTop](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.WindowNode#getTop())`()` Returns the top edge of the window, in pixels, relative to the top edge of the screen.                                                                                                                                      |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                              | [getWidth](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.WindowNode#getWidth())`()` Returns the total width of the window in pixels.                                                                                                                                                                        |

## Public methods

### getDisplayId

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

```
open fun getDisplayId(): Int
```

Returns the ID of the display this window is on, for use with[DisplayManager.getDisplay()](https://developer.android.com/reference/kotlin/android/hardware/display/DisplayManager.html#getDisplay(kotlin.Int)).  

### getHeight

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

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

Returns the total height of the window in pixels.  

### 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 the window, in pixels, relative to the left edge of the screen.  

### getRootViewNode

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

```
open fun getRootViewNode(): AssistStructure.ViewNode!
```

Returns the[ViewNode](https://developer.android.com/reference/kotlin/android/app/assist/AssistStructure.ViewNode)containing the root content of the window.  

### getTitle

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

```
open fun getTitle(): CharSequence!
```

Returns the title associated with the window, if it has one.  

### 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 the window, in pixels, relative to the top edge of the screen.  

### getWidth

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

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

Returns the total width of the window in pixels.