Added in API level 23

WindowNode

open class WindowNode
kotlin.Any
   ↳ android.app.assist.AssistStructure.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

getDisplayId

Added in API level 23
open fun getDisplayId(): Int

Returns the ID of the display this window is on, for use with DisplayManager.getDisplay().

getHeight

Added in API level 23
open fun getHeight(): Int

Returns the total height of the window in pixels.

getLeft

Added in API level 23
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
open fun getRootViewNode(): AssistStructure.ViewNode!

Returns the ViewNode containing the root content of the window.

getTitle

Added in API level 23
open fun getTitle(): CharSequence!

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

getTop

Added in API level 23
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
open fun getWidth(): Int

Returns the total width of the window in pixels.