CompactMediaContainer
Provides required choice between Image and Video content.
Inheritors
Types
Link copied to clipboard
data class Custom(val modifier: Modifier = Modifier, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9, val content: @Composable () -> 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) : CompactMediaContainer
Image content for the media container.
Link copied to clipboard
data class Video(val player: @Composable () -> Unit, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio1by1, val contentDescription: String?, val onClick: () -> Unit) : CompactMediaContainer
Video content for the media container.