LanguageMenuButton
fun MenuScope.LanguageMenuButton(modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(0.dp), content: @Composable () -> Unit = {
Icon(
painter = painterResource(id = CommonR.drawable.language),
contentDescription = stringResource(CommonR.string.theoplayer_ui_menu_language),
)
})(source)
A button that opens the language menu.
Parameters
modifier
the Modifier to be applied to this button
contentPadding
the spacing values to apply internally between the container and content
content
the button content
fun MenuScope.LanguageMenuButton(audioTrackState: AudioTrackState, subtitleTrackState: SubtitleTrackState, modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(0.dp), content: @Composable () -> Unit = {
Icon(
painter = painterResource(id = CommonR.drawable.language),
contentDescription = stringResource(CommonR.string.theoplayer_ui_menu_language),
)
})(source)
A button that opens the language menu.
The states are only used to decide whether the button is shown. The opened menu remembers its own states.
Parameters
audioTrackState
the AudioTrackState to read
subtitleTrackState
the SubtitleTrackState to read
modifier
the Modifier to be applied to this button
contentPadding
the spacing values to apply internally between the container and content
content
the button content