# WindowLayoutInfo

Artifact: [androidx.window:window](https://developer.android.com/jetpack/androidx/releases/window) [View Source](https://cs.android.com/search?q=file:androidx/window/layout/WindowLayoutInfo.kt+class:androidx.window.layout.WindowLayoutInfo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/window#1.0.0)

*** ** * ** ***

<br />

```
class WindowLayoutInfo
```

<br />

*** ** * ** ***

Contains the list of `https://developer.android.com/reference/kotlin/androidx/window/layout/DisplayFeature`-s present in the window and the window's engagement mode.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowInfoTracker#windowLayoutInfo(android.content.Context)` |   |
| `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode` |   |

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode` **This class is deprecated.** Use WindowEngagementInfo.EngagementMode instead |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[hasEngagementMode](https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#hasEngagementMode(androidx.window.layout.WindowLayoutInfo.EngagementMode))(mode: https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode)` **This function is deprecated.** Use WindowEngagementInfo#hasEngagementMode instead |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[hasEngagementModes](https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#hasEngagementModes(kotlin.Array))(vararg modes: https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode)` **This function is deprecated.** Use WindowEngagementInfo#hasEngagementModes instead |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/window/layout/DisplayFeature>` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#displayFeatures()` The display features that are present in the window. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode>` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#engagementModes()` **This property is deprecated.** Use WindowEngagementInfo#engagementModes instead |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hasEngagementMode

Added in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05) Deprecated in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05)

```
fun [hasEngagementMode](https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#hasEngagementMode(androidx.window.layout.WindowLayoutInfo.EngagementMode))(mode: WindowLayoutInfo.EngagementMode): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Use WindowEngagementInfo#hasEngagementMode instead

Checks if a specific engagement mode is currently active.

| Parameters |
|---|---|
| `mode: https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode` | The `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode` to check for. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the mode is present in the `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#engagementModes()` set, false otherwise. |

### hasEngagementModes

Added in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05) Deprecated in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05)

```
fun [hasEngagementModes](https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#hasEngagementModes(kotlin.Array))(vararg modes: WindowLayoutInfo.EngagementMode): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Use WindowEngagementInfo#hasEngagementModes instead

Checks if all specified engagement modes are currently active.

| Parameters |
|---|---|
| `vararg modes: https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode` | The `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode`-s to check for. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if all specified modes are in the `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#engagementModes()` set, false otherwise. |

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### displayFeatures

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/window#1.0.0)

```
val displayFeatures: List<DisplayFeature>
```

The display features that are present in the window. It is an empty list if there are no display features.

### engagementModes

Added in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05) Deprecated in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05)

```
val engagementModes: Set<WindowLayoutInfo.EngagementMode>
```

> [!CAUTION]
> **This property is deprecated.**   
> Use WindowEngagementInfo#engagementModes instead

The current user engagement modes, indicating how the user is interacting with the app.