Stay organized with collections
Save and categorize content based on your preferences.
WindowNode
open class WindowNode
Describes a window in the assist data.
Summary
Public methods |
open Int |
Returns the ID of the display this window is on, for use with DisplayManager.getDisplay() .
|
open Int |
Returns the total height of the window in pixels.
|
open Int |
Returns the left edge of the window, in pixels, relative to the left edge of the screen.
|
open AssistStructure.ViewNode! |
Returns the ViewNode containing the root content of the window.
|
open CharSequence! |
Returns the title associated with the window, if it has one.
|
open Int |
Returns the top edge of the window, in pixels, relative to the top edge of the screen.
|
open Int |
Returns the total width of the window in pixels.
|
Public methods
getHeight
open fun getHeight(): Int
Returns the total height of the window in pixels.
getLeft
open fun getLeft(): Int
Returns the left edge of the window, in pixels, relative to the left edge of the screen.
getTitle
open fun getTitle(): CharSequence!
Returns the title associated with the window, if it has one.
getTop
open fun getTop(): Int
Returns the top edge of the window, in pixels, relative to the top edge of the screen.
getWidth
open fun getWidth(): Int
Returns the total width of the window in pixels.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# AssistStructure.WindowNode\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nWindowNode\n==========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/assist/AssistStructure.WindowNode \"View this page in Java\") \n\n```\nopen class WindowNode\n```\n\n|---|----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.app.assist.AssistStructure.WindowNode](#) |\n\nDescribes a window in the assist data.\n\nSummary\n-------\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getDisplayId](#getDisplayId())`()` Returns the ID of the display this window is on, for use with [DisplayManager.getDisplay()](../../hardware/display/DisplayManager.html#getDisplay(kotlin.Int)). |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getHeight](#getHeight())`()` Returns the total height of the window in pixels. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getLeft](#getLeft())`()` Returns the left edge of the window, in pixels, relative to the left edge of the screen. |\n| open [AssistStructure.ViewNode](/reference/kotlin/android/app/assist/AssistStructure.ViewNode)! | [getRootViewNode](#getRootViewNode())`()` Returns the [ViewNode](/reference/kotlin/android/app/assist/AssistStructure.ViewNode) containing the root content of the window. |\n| open [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)! | [getTitle](#getTitle())`()` Returns the title associated with the window, if it has one. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getTop](#getTop())`()` Returns the top edge of the window, in pixels, relative to the top edge of the screen. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getWidth](#getWidth())`()` Returns the total width of the window in pixels. |\n\nPublic methods\n--------------\n\n### getDisplayId\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getDisplayId(): Int\n```\n\nReturns the ID of the display this window is on, for use with [DisplayManager.getDisplay()](../../hardware/display/DisplayManager.html#getDisplay(kotlin.Int)). \n\n### getHeight\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getHeight(): Int\n```\n\nReturns the total height of the window in pixels. \n\n### getLeft\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getLeft(): Int\n```\n\nReturns the left edge of the window, in pixels, relative to the left edge of the screen. \n\n### getRootViewNode\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getRootViewNode(): AssistStructure.ViewNode!\n```\n\nReturns the [ViewNode](/reference/kotlin/android/app/assist/AssistStructure.ViewNode) containing the root content of the window. \n\n### getTitle\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getTitle(): CharSequence!\n```\n\nReturns the title associated with the window, if it has one. \n\n### getTop\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getTop(): Int\n```\n\nReturns the top edge of the window, in pixels, relative to the top edge of the screen. \n\n### getWidth\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getWidth(): Int\n```\n\nReturns the total width of the window in pixels."]]