-
public final class MediaChipKt
-
-
Method Summary
Modifier and Type Method Description final static UnitMediaChip(MediaUiModel media, Function0<Unit> onClick, Modifier modifier, String defaultTitle, Painter placeholder)A rounded chip to show a single MediaUiModel. final static UnitMediaChip(String title, Paintable artworkPaintable, Function0<Unit> onClick, Modifier modifier)A rounded chip to show a single media title and its artwork. -
-
Method Detail
-
MediaChip
@Composable() final static Unit MediaChip(MediaUiModel media, Function0<Unit> onClick, Modifier modifier, String defaultTitle, Painter placeholder)
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.
-
-
-
-