Menu

fun MenuScope.Menu(modifier: Modifier = Modifier, title: @Composable () -> Unit, backIcon: @Composable () -> Unit = { Icon( Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = "Back" ) }, content: @Composable () -> Unit)

A menu that can be opened on top of the player.

The menu has a heading at the top, with a back button and a title text. Clicking on any empty space around the menu's content closes the menu.

Parameters

modifier

the Modifier to be applied to this menu

title

the title

backIcon

the icon for the back button, typically an Icon