MediaChip

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

A rounded chip to show a single MediaUiModel.

Parameters

media

The MediaUiModel that the title and 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 artwork is being loaded.


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

A rounded chip to show a single media title and its artwork.