MediaDetailsButton

fun MediaDetailsButton(media: MediaUiModel.Ready, onClick: () -> Unit, modifier: Modifier = Modifier, defaultTitle: String = "", placeholder: Painter? = null)

A rounded pill-shaped button to show a single MediaUiModel.

Parameters

media

The MediaUiModel that the MediaUiModel.title and MediaUiModel.artwork will be used to display on the chip.

onClick

Will be called when the user clicks the chip.

modifier

The Modifier to be applied to the chip.

defaultTitle

A text to be used when MediaUiModel.title is null.

placeholder

A placeholder image to be displayed while MediaUiModel.artwork is being loaded.


fun MediaDetailsButton(title: String, artworkPaintable: Paintable?, onClick: () -> Unit, modifier: Modifier = Modifier)

A rounded pill-shaped button to show a single media title and its artwork.