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