# WindowEngagementInfo

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

*** ** * ** ***

<br />

```
class WindowEngagementInfo
```

<br />

*** ** * ** ***

Contains the window's engagement mode.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo.EngagementMode` Represents a distinct user engagement mode with an application. |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo#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` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo#hasEngagementMode(androidx.window.layout.WindowEngagementInfo.EngagementMode)(mode: https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo.EngagementMode)` Checks if a specific engagement mode is currently active. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo#hasEngagementModes(kotlin.Array)(vararg modes: https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo.EngagementMode)` Checks if all specified engagement modes are currently active. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo.EngagementMode>` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo#engagementModes()` The current user engagement modes, indicating how the user is interacting with the app. |

## 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)

```
fun hasEngagementMode(mode: WindowEngagementInfo.EngagementMode): Boolean
```

Checks if a specific engagement mode is currently active.

| Parameters |
|---|---|
| `mode: https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo.EngagementMode` | The `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo.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/WindowEngagementInfo#engagementModes()` set, false otherwise. |

### hasEngagementModes

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

```
fun hasEngagementModes(vararg modes: WindowEngagementInfo.EngagementMode): Boolean
```

Checks if all specified engagement modes are currently active.

| Parameters |
|---|---|
| `vararg modes: https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo.EngagementMode` | The `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowEngagementInfo.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/WindowEngagementInfo#engagementModes()` set, false otherwise. |

### hashCode

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

### toString

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

## Public properties

### engagementModes

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

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

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