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

*** ** * ** ***


```
public final class WindowLayoutInfo.EngagementMode
```

<br />

*** ** * ** ***

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

Represents a distinct user engagement mode with an application.

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

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode` | `https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode#AUDIO_ON()` **This field is deprecated.** Use WindowEngagementInfo.EngagementMode instead |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode` | `https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode#VISUALS_ON()` **This field is deprecated.** Use WindowEngagementInfo.EngagementMode instead |

| ### Public methods |
|---|---|
| `boolean` | `[equals](https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode#equals(kotlin.Any))(https://developer.android.com/reference/java/lang/Object.html other)` **This method is deprecated.** Use WindowEngagementInfo.EngagementMode instead |
| `int` | `[hashCode](https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode#hashCode())()` **This method is deprecated.** Use WindowEngagementInfo.EngagementMode instead |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `[toString](https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode#toString())()` **This method is deprecated.** Use WindowEngagementInfo.EngagementMode instead |

## Public fields

### AUDIO_ON

```
public static final @NonNull WindowLayoutInfo.EngagementMode AUDIO_ON
```

> [!CAUTION]
> **This field is deprecated.**   
> Use WindowEngagementInfo.EngagementMode instead, use this instead:
>
> ```
> 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/androidx/window/layout/WindowLayoutInfo.EngagementMode#VISUALS_ON()`. When active without visuals, it signifies an audio-only experience.

### VISUALS_ON

```
public static final @NonNull WindowLayoutInfo.EngagementMode VISUALS_ON
```

> [!CAUTION]
> **This field is deprecated.**   
> Use WindowEngagementInfo.EngagementMode instead, use this instead:
>
> ```
> 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 methods

### equals

```
public boolean [equals](https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode#equals(kotlin.Any))(Object other)
```

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

### hashCode

```
public int [hashCode](https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode#hashCode())()
```

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

### toString

```
public @NonNull String [toString](https://developer.android.com/reference/androidx/window/layout/WindowLayoutInfo.EngagementMode#toString())()
```

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