Google is committed to advancing racial equity for Black communities. See how.

WindowManager

@Stable interface WindowManager
androidx.compose.ui.platform.WindowManager

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

Summary

Properties
abstract Boolean

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

Properties

isWindowFocused

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