MediaRouteControllerDialog

fun MediaRouteControllerDialog(routeSelector: MediaRouteSelector, modifier: Modifier = Modifier, volumeControlEnabled: Boolean = true, shape: Shape = AlertDialogDefaults.shape, containerColor: Color = AlertDialogDefaults.containerColor, buttonColors: ButtonColors = ButtonDefaults.textButtonColors(), iconContentColor: Color = AlertDialogDefaults.iconContentColor, titleContentColor: Color = AlertDialogDefaults.titleContentColor, textContentColor: Color = AlertDialogDefaults.textContentColor, tonalElevation: Dp = AlertDialogDefaults.TonalElevation, properties: DialogProperties = DialogProperties(), onDismissRequest: () -> Unit, customControlView: @Composable () -> Unit? = null)

This class implements the route controller dialog for MediaRouter.

This dialog allows the user to control or disconnect from the currently selected route.

Parameters

routeSelector

The media route selector for filtering the routes that the user can select using the media route chooser dialog.

modifier

The Modifier to be applied to this dialog.

volumeControlEnabled

Whether to enable the volume slider and volume control using the volume keys when the route supports it.

shape

The shape of the dialog.

containerColor

The color used for the background of the dialog. Use Color.Transparent to have no color.

buttonColors

The colors used for buttons.

iconContentColor

The content color used for the icon.

titleContentColor

The content color used for the title.

textContentColor

The content color used for the text.

tonalElevation

When containerColor is ColorScheme.surface, a translucent primary color overlay is applied on top of the container. A higher tonal elevation value will result in a darker color in light theme and lighter color in dark theme. See also: Surface.

properties

Typically platform specific properties to further configure the dialog.

onDismissRequest

The action to perform when this dialog is dismissed.

customControlView

The view that will replace the default media controls for the currently playing content.

See also