MediaRouteButtonKt


public final class MediaRouteButtonKt


Summary

Public methods

static final void

A Material3 IconButton that displays a media route button.

Public methods

MediaRouteButton

@UnstableApi
@Composable
public static final void MediaRouteButton(@NonNull Modifier modifier)

A Material3 IconButton that displays a media route button.

Clicking the button displays the route chooser dialog for transferring media or the route controller dialog to control the remote playback. The default behavior prioritizes launching the system's route chooser / controller dialog if available and falls back to an in-app dialog otherwise.

The button's tint color can be customized by providing a LocalContentColor in the composition hierarchy.

 CompositionLocalProvider(LocalContentColor provides Color.Blue) {
MediaRouteButton(modifier = modifier)
}
Parameters
@NonNull Modifier modifier

the Modifier to be applied to the button.