Package 

Class MediaChipKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit MediaChip(MediaUiModel media, Function0<Unit> onClick, Modifier modifier, String defaultTitle, Painter placeholder) A rounded chip to show a single MediaUiModel.
      final static Unit MediaChip(String title, Paintable artworkPaintable, Function0<Unit> onClick, Modifier modifier) A rounded chip to show a single media title and its artwork.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • MediaChip

        @Composable() final static Unit MediaChip(String title, Paintable artworkPaintable, Function0<Unit> onClick, Modifier modifier)

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