---
title: "WindowInfo"
description: "Provides information about the Window that is hosting this compose hierarchy."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
interface WindowInfo
```


Provides information about the Window that is hosting this compose hierarchy.


## Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val isWindowFocused: Boolean
```


Indicates whether the window hosting this compose hierarchy is in focus.

When there are multiple windows visible, either in a multi-window environment or if a popup
or dialog is visible, this property can be used to determine if the current window is in
focus.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val keyboardModifiers: PointerKeyboardModifiers
```


Indicates the state of keyboard modifiers (pressed or not).



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val containerSize: IntSize
```


Size of the window. This size excludes insets, such as any system bars, so it is not safe to
assume that this size matches the available space of the compose hierarchy hosted inside this
window. Instead this size should be used as a breakpoint when changing between UI
configurations, or similar window-dependent configuration.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val containerDpSize: DpSize
```


Size of the window represented as `DpSize`. This size excludes insets, such as any system
bars, so it is not safe to assume that this size matches the available space of the compose
hierarchy hosted inside this window. Instead this size should be used as a breakpoint when
changing between UI configurations, or similar window-dependent configuration.




