MediaRouteChooserDialog

fun MediaRouteChooserDialog(routeSelector: MediaRouteSelector, modifier: Modifier = Modifier, title: String? = null, shape: Shape = AlertDialogDefaults.shape, containerColor: Color = AlertDialogDefaults.containerColor, buttonColors: ButtonColors = ButtonDefaults.textButtonColors(), iconContentColor: Color = AlertDialogDefaults.iconContentColor, titleContentColor: Color = AlertDialogDefaults.titleContentColor, textContentColor: Color = AlertDialogDefaults.textContentColor, listColors: ListItemColors = ListItemDefaults.colors( containerColor = containerColor, headlineColor = textContentColor, leadingIconColor = iconContentColor, supportingColor = textContentColor, ), tonalElevation: Dp = AlertDialogDefaults.TonalElevation, properties: DialogProperties = DialogProperties(), onDismissRequest: () -> Unit)

This class implements the route chooser dialog for MediaRouter.

This dialog allows the user to choose a route that matches a given selector.

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.

title

The title of the dialog. If null, it will be defined based on the chooser state.

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.

listColors

The colors used for the list of routes.

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.

See also