# PictureInPictureModeChangedInfo

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

*** ** * ** ***

<br />

```
class PictureInPictureModeChangedInfo
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/PictureInPictureModeChangedInfo#PictureInPictureModeChangedInfo(kotlin.Boolean)(isInPictureInPictureMode: 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/PictureInPictureModeChangedInfo#PictureInPictureModeChangedInfo(kotlin.Boolean,android.content.res.Configuration)( isInPictureInPictureMode: 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 picture-in-picture mode and the new configuration with the new picture-in-picture mode applied. |

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

## Public constructors

### PictureInPictureModeChangedInfo

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

```
PictureInPictureModeChangedInfo(isInPictureInPictureMode: Boolean)
```

### PictureInPictureModeChangedInfo

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

```
@RequiresApi(value = 26)
PictureInPictureModeChangedInfo(
    isInPictureInPictureMode: Boolean,
    newConfig: Configuration
)
```

Construct an instance that contains the new picture-in-picture mode and the new configuration with the new picture-in-picture mode applied.

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

## Public properties

### isInPictureInPictureMode

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

```
val isInPictureInPictureMode: Boolean
```

Gets the new picture-in-picture mode.

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

### newConfig

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

```
val newConfig: Configuration
```