PictureInPictureState

State holder for a picture-in-picture button, such as PictureInPictureButton.

Create an instance with rememberPictureInPictureState.

Properties

Link copied to clipboard

Whether the player is in (or transitioning to) picture-in-picture mode.

Link copied to clipboard

Whether the activity and player support picture-in-picture mode.

Functions

Link copied to clipboard
fun enterPictureInPicture(pipType: PiPType)

Enters picture-in-picture mode, leaving fullscreen first if needed.

Link copied to clipboard

Leaves picture-in-picture mode.