MediaContainer
Types
Link copied to clipboard
data class Custom(val modifier: Modifier = Modifier, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9, val content: @Composable () -> Unit) : MediaContainer
Open composable container for the Card. 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 aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9, val contentScale: ContentScale = ContentScale.Crop) : MediaContainer
Link copied to clipboard
data class ShoppableImage<T>(val imageParams: ShoppableImageBackgroundParams, val products: List<ShoppableImageItem<T?>>, val modifier: Modifier = Modifier, val selectedProduct: T? = null, val showDots: Boolean = true, val shopAllButtonParams: ShopAllButtonParams? = null, val onSelected: (T?) -> Unit) : MediaContainer
The ShoppableImage container for the Card.
Link copied to clipboard
data class Video(val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9, val contentDescription: String?, val playButtonParams: VideoPlayerButtonParams.PlayButtonParams, val transcriptionParams: VideoPlayerButtonParams.TranscriptionParams? = null, val onBackgroundClick: () -> Unit? = null, val player: @Composable () -> Unit) : MediaContainer