Picture In Picture Button
fun PictureInPictureButton(modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(0.dp), pipType: PiPType = PiPType.ACTIVITY, enter: @Composable () -> Unit = {
Icon(
Icons.Rounded.PictureInPictureAlt,
contentDescription = stringResource(R.string.theoplayer_ui_pip_enter),
)
}, exit: @Composable () -> Unit = {
Icon(
Icons.Rounded.Fullscreen,
contentDescription = stringResource(R.string.theoplayer_ui_pip_exit)
)
})
A button that toggles picture-in-picture mode.
Parameters
modifier
the Modifier to be applied to this button
content Padding
the spacing values to apply internally between the container and the content
pip Type
the type of the picture-in-picture window when entering
enter
button content when the player is not in picture-in-picture mode, typically an "enter picture-in-picture" icon
exit
button content when the player is in picture-in-picture mode, typically an "exit picture-in-picture" icon