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
Link copied to clipboard

The modifier to be applied to the image. Of type Modifier.

Link copied to clipboard
val onSelected: (T?) -> Unit

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
val selectedProduct: T? = null

The selected product. Of type T dependent on ShoppableImageItem.

Link copied to clipboard

The property for the shop all button. Of type ShopAllButtonParams.

Link copied to clipboard
val showDots: Boolean = true

The boolean value to show the dots. Of type Boolean.