TextOverlayMediaContainer
Represents the media container for the Text Overlay Card. Currently, it supports only Image, but soon it will be a Video option as well.
Inheritors
Types
Link copied to clipboard
data class Custom(val modifier: Modifier = Modifier, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio1by1, val content: @Composable BoxScope.() -> Unit) : TextOverlayMediaContainer
Custom content for the media container. This is intended for custom loading image logic and follows the Image styling aspects.
Link copied to clipboard
data class Image(val painter: Painter, val contentScale: ContentScale = ContentScale.Crop, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio1by1, val contentDescription: String?) : TextOverlayMediaContainer
Link copied to clipboard
data class Video(val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio1by1, val contentDescription: String?, val playButtonParams: VideoPlayerButtonParams.PlayButtonParams, val transcriptionParams: VideoPlayerButtonParams.TranscriptionParams? = null, val player: @Composable () -> Unit) : TextOverlayMediaContainer
Video content for the media container.