# AssistStructure.WindowNode

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Methods](https://developer.android.com/reference/android/app/assist/AssistStructure.WindowNode#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/app/assist/AssistStructure.WindowNode#inhmethods)  

# AssistStructure.WindowNode

*** ** * ** ***

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

`
public
static


class
AssistStructure.WindowNode
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|-----------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.app.assist.AssistStructure.WindowNode |

<br />

*** ** * ** ***

Describes a window in the assist data.

## Summary

|                                                                                                                                                                                                              ### Public methods                                                                                                                                                                                                               ||
|--------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                                             | ` `[getDisplayId](https://developer.android.com/reference/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/android/hardware/display/DisplayManager#getDisplay(int)). |
| ` int`                                                                                                             | ` `[getHeight](https://developer.android.com/reference/android/app/assist/AssistStructure.WindowNode#getHeight())`() ` Returns the total height of the window in pixels.                                                                                                                                                  |
| ` int`                                                                                                             | ` `[getLeft](https://developer.android.com/reference/android/app/assist/AssistStructure.WindowNode#getLeft())`() ` Returns the left edge of the window, in pixels, relative to the left edge of the screen.                                                                                                               |
| ` `[AssistStructure.ViewNode](https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode) | ` `[getRootViewNode](https://developer.android.com/reference/android/app/assist/AssistStructure.WindowNode#getRootViewNode())`() ` Returns the[ViewNode](https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode)containing the root content of the window.                                   |
| ` `[CharSequence](https://developer.android.com/reference/java/lang/CharSequence)                                  | ` `[getTitle](https://developer.android.com/reference/android/app/assist/AssistStructure.WindowNode#getTitle())`() ` Returns the title associated with the window, if it has one.                                                                                                                                         |
| ` int`                                                                                                             | ` `[getTop](https://developer.android.com/reference/android/app/assist/AssistStructure.WindowNode#getTop())`() ` Returns the top edge of the window, in pixels, relative to the top edge of the screen.                                                                                                                   |
| ` int`                                                                                                             | ` `[getWidth](https://developer.android.com/reference/android/app/assist/AssistStructure.WindowNode#getWidth())`() ` Returns the total width of the window in pixels.                                                                                                                                                     |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public methods

### getDisplayId

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

```
public int getDisplayId ()
```

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

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getHeight

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

```
public int getHeight ()
```

Returns the total height of the window in pixels.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getLeft

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

```
public int getLeft ()
```

Returns the left edge of the window, in pixels, relative to the left edge of the screen.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getRootViewNode

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

```
public AssistStructure.ViewNode getRootViewNode ()
```

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

<br />

|                                                         Returns                                                         ||
|-----------------------------------------------------------------------------------------------------------------|--------|
| [AssistStructure.ViewNode](https://developer.android.com/reference/android/app/assist/AssistStructure.ViewNode) | <br /> |

### getTitle

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

```
public CharSequence getTitle ()
```

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

<br />

|                                        Returns                                         ||
|--------------------------------------------------------------------------------|--------|
| [CharSequence](https://developer.android.com/reference/java/lang/CharSequence) | <br /> |

### getTop

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

```
public int getTop ()
```

Returns the top edge of the window, in pixels, relative to the top edge of the screen.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getWidth

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

```
public int getWidth ()
```

Returns the total width of the window in pixels.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |