Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# DisplayEngagementModeState

*** ** * ** ***

```
class DisplayEngagementModeState
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.view.WindowManager.DisplayEngagementModeState](https://developer.android.com/reference/kotlin/android/view/WindowManager.DisplayEngagementModeState#) |

A class that holds information about the display engagement mode.

## Summary

| Public methods ||
|---|---|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/view/WindowManager.DisplayEngagementModeState#getDisplayId()()` Returns the display ID. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/view/WindowManager.DisplayEngagementModeState#getEngagementModeFlags()()` Returns the engagement mode flags. |

## Public methods

### getDisplayId

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getDisplayId(): Int
```

Returns the display ID.

### getEngagementModeFlags

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getEngagementModeFlags(): Int
```

Returns the engagement mode flags.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | Value is either `0` or a combination of the following: - `https://developer.android.com/reference/kotlin/android/view/WindowManager#ENGAGEMENT_MODE_FLAG_VISUALS_ON:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/view/WindowManager#ENGAGEMENT_MODE_FLAG_AUDIO_ON:kotlin.Int` |