CompactMediaContainer

Provides required choice between Image and Video content.

Inheritors

Types

Link copied to clipboard
data class Custom(val modifier: Modifier = Modifier, val contentAlignment: Alignment = Alignment.Center, val content: @Composable BoxScope.() -> Unit) : CompactMediaContainer

Open composable container for the CompactCard. Only use this in case there are limitations using the other options.

Link copied to clipboard
data class Image(val painter: Painter, val contentDescription: String?, val contentScale: ContentScale = ContentScale.Crop, val aspectRatio: SkapaAspectRatio? = SkapaAspectRatio.Ratio1by1, val modifier: Modifier = Modifier) : CompactMediaContainer

Image content for the media container.

Link copied to clipboard
data class Video(val modifier: Modifier = Modifier, val aspectRatio: SkapaAspectRatio? = SkapaAspectRatio.Ratio1by1, val contentDescription: String?, val playButtonParams: VideoPlayerButtonParams.PlayButtonParams, val transcriptionParams: VideoPlayerButtonParams.TranscriptionParams? = null, val onBackgroundClick: () -> Unit? = null, val controlsContentPadding: PaddingValues = PaddingValues.Zero, val player: @Composable () -> Unit) : CompactMediaContainer

Video content for the media container.