ShoppableImage
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.
Constructors
Link copied to clipboard
constructor(imageParams: ShoppableImageBackgroundParams, products: List<ShoppableImageItem<T?>>, modifier: Modifier = Modifier, selectedProduct: T? = null, showDots: Boolean = true, shopAllButtonParams: ShopAllButtonParams? = null, onSelected: (T?) -> Unit)
Properties
Link copied to clipboard
The parameters for the image. Of type ShoppableImageBackgroundParams.
Link copied to clipboard
The lambda to be invoked when a product is selected. Of generic type <T>.
Link copied to clipboard
The list of products to be displayed on the image. Of type List of ShoppableImageItem.
Link copied to clipboard
The selected product. Of type T dependent on ShoppableImageItem.
Link copied to clipboard
The property for the shop all button. Of type ShopAllButtonParams.