# WindowInfo

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/platform/WindowInfo.kt+class:androidx.compose.ui.platform.WindowInfo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  interface WindowInfo
  ```

*** ** * ** ***

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

## Summary

| ### Public properties |
|---|---|---|
| `open https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/WindowInfo#containerDpSize()` The size of the window represented as a `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize` that can used by the application in some way. | Cmn |
| `open https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/WindowInfo#containerSize()` The size of the window in pixels that can used by the application in some way. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/WindowInfo#isWindowFocused()` Indicates whether the window hosting this compose hierarchy is in focus. | Cmn |
| `open https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/PointerKeyboardModifiers` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/WindowInfo#keyboardModifiers()` Indicates the state of keyboard modifiers (pressed or not). | Cmn |

| ### Extension properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/WindowInfo.https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/WindowInfo#(androidx.compose.ui.platform.WindowInfo).isCrossWindowBlurEnabled()` Whether cross-window blur is currently enabled by the system. | android |

## Public properties

### containerDpSize

Cmn

```
open val containerDpSize: DpSize
```

The size of the window represented as a `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize` that can used by the application in some way. Note that this may be a larger size than is available to the Compose hierarchy (if Compose does not fill the window). In addition, it may not be safe to display content using the entire window size, for example in situations where insets representing cutouts or obscuring system UI reduce the amount of available space. Even though all pixels included in this size may not be usable at any given time, it's relative stability means it is generally the correct signal to drive the overall layout structure displaying in the window.

### containerSize

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
open val containerSize: IntSize
```

The size of the window in pixels that can used by the application in some way. Note that this may be a larger size than is available to the Compose hierarchy (if Compose does not fill the window). In addition, it may not be safe to display content using the entire window size, for example in situations where insets representing cutouts or obscuring system UI reduce the amount of available space. Even though all pixels included in this size may not be usable at any given time, it's relative stability means it is generally the correct signal to drive the overall layout structure displaying in the window.

### isWindowFocused

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
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.

### keyboardModifiers

Cmn Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
open val keyboardModifiers: PointerKeyboardModifiers
```

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

## Extension properties

### WindowInfo.isCrossWindowBlurEnabled

android Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/platform/AndroidWindowInfo.android.kt+symbol:isCrossWindowBlurEnabled)

```
val WindowInfo.isCrossWindowBlurEnabled: Boolean
```

Whether cross-window blur is currently enabled by the system.

Cross-window blur might not be supported by some devices due to GPU limitations. It can also be disabled at runtime (e.g., during battery saving mode, when multimedia tunneling is used, or when minimal post-processing is requested). In these situations, no blur is computed or drawn. Apps should check this flag to fall back to alternative styling (such as adjusting scrim opacity or changing themes) when blurs are disabled.

This affects both window blur behind (see `https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#setBlurBehindRadius(int)`) and window background blur (see `https://developer.android.com/reference/android/view/Window.html#setBackgroundBlurRadius(int)`).

On Android, this property queries `https://developer.android.com/reference/android/view/WindowManager.html#isCrossWindowBlurEnabled()` on API 31+; on older API levels it always returns `false`.