# MultiWindowModeChangedInfo

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/MultiWindowModeChangedInfo.kt+class:androidx.core.app.MultiWindowModeChangedInfo) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/core#1.8.0)

*** ** * ** ***

<br />

```
class MultiWindowModeChangedInfo
```

<br />

*** ** * ** ***

Class that encapsulates the information that is delivered when `https://developer.android.com/reference/android/app/Activity.html#onMultiWindowModeChanged(boolean)` is dispatched to a `https://developer.android.com/reference/kotlin/androidx/core/app/OnMultiWindowModeChangedProvider`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/MultiWindowModeChangedInfo#MultiWindowModeChangedInfo(kotlin.Boolean)(isInMultiWindowMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/kotlin/androidx/core/app/MultiWindowModeChangedInfo#MultiWindowModeChangedInfo(kotlin.Boolean,android.content.res.Configuration)( isInMultiWindowMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, newConfig: https://developer.android.com/reference/android/content/res/Configuration.html )` Construct an instance that contains the new multi-window mode and the new configuration with the new multi-window mode applied. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/MultiWindowModeChangedInfo#isInMultiWindowMode()` Gets the new multi-window mode. |
| `https://developer.android.com/reference/android/content/res/Configuration.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/MultiWindowModeChangedInfo#newConfig()` |

## Public constructors

### MultiWindowModeChangedInfo

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

```
MultiWindowModeChangedInfo(isInMultiWindowMode: Boolean)
```

### MultiWindowModeChangedInfo

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

```
@RequiresApi(value = 26)
MultiWindowModeChangedInfo(
    isInMultiWindowMode: Boolean,
    newConfig: Configuration
)
```

Construct an instance that contains the new multi-window mode and the new configuration with the new multi-window mode applied.

| Parameters |
|---|---|
| `isInMultiWindowMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if the activity is in multi-window mode. |
| `newConfig: https://developer.android.com/reference/android/content/res/Configuration.html` | The new configuration of the activity with the state {@param isInMultiWindowMode}. |

## Public properties

### isInMultiWindowMode

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

```
val isInMultiWindowMode: Boolean
```

Gets the new multi-window mode.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if the activity is in multi-window mode. |

### newConfig

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

```
val newConfig: Configuration
```