[android-components](../../index.md) / [mozilla.components.feature.session](../index.md) / [PictureInPictureFeature](index.md) / [onPictureInPictureModeChanged](./on-picture-in-picture-mode-changed.md)

# onPictureInPictureModeChanged

`fun onPictureInPictureModeChanged(enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/session/src/main/java/mozilla/components/feature/session/PictureInPictureFeature.kt#L83)

Should be called when the system informs you of changes to and from picture-in-picture mode.

### Parameters

`enabled` - True if the activity is in picture-in-picture mode.