# WindowLayoutInfo.EngagementMode

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.EngagementMode) 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)

*** ** * ** ***


```
class WindowLayoutInfo.EngagementMode
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Use WindowEngagementInfo.EngagementMode instead, use this instead:
>
> ```kotlin
> androidx.window.layout.WindowEngagementInfo.EngagementMode
> ```

Represents a distinct user engagement mode with an application.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo#engagementModes()` |   |

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode#AUDIO_ON()` **This property is deprecated.** Use WindowEngagementInfo.EngagementMode instead |
| `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode` | `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode#VISUALS_ON()` **This property is deprecated.** Use WindowEngagementInfo.EngagementMode instead |

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

## Public companion properties

### AUDIO_ON

```
val AUDIO_ON: WindowLayoutInfo.EngagementMode
```

> [!CAUTION]
> **This property is deprecated.**   
> Use WindowEngagementInfo.EngagementMode instead, use this instead:
>
> ```kotlin
> androidx.window.layout.WindowEngagementInfo.EngagementMode
> ```

Indicates the engagement mode includes an audio presentation. This can be active with or without `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode#VISUALS_ON()`. When active without visuals, it signifies an audio-only experience.

### VISUALS_ON

```
val VISUALS_ON: WindowLayoutInfo.EngagementMode
```

> [!CAUTION]
> **This property is deprecated.**   
> Use WindowEngagementInfo.EngagementMode instead, use this instead:
>
> ```kotlin
> androidx.window.layout.WindowEngagementInfo.EngagementMode
> ```

Indicates the engagement mode includes a visual presentation. When this mode is active, the user can visually see the app UI on a visible window.

## Public functions

### equals

```
open operator fun [equals](https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode#equals(kotlin.Any))(other: Any?): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Use WindowEngagementInfo.EngagementMode instead, use this instead:
>
> ```kotlin
> androidx.window.layout.WindowEngagementInfo.EngagementMode
> ```

### hashCode

```
open fun [hashCode](https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode#hashCode())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Use WindowEngagementInfo.EngagementMode instead, use this instead:
>
> ```kotlin
> androidx.window.layout.WindowEngagementInfo.EngagementMode
> ```

### toString

```
open fun [toString](https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo.EngagementMode#toString())(): String
```

> [!CAUTION]
> **This function is deprecated.**   
> Use WindowEngagementInfo.EngagementMode instead, use this instead:
>
> ```kotlin
> androidx.window.layout.WindowEngagementInfo.EngagementMode
> ```