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.

Parameters

imageParams

The parameters for the image. Of type ShoppableImageBackgroundParams.

products

The list of products to be displayed on the image. Of type List of ShoppableImageItem.

modifier

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

selectedProduct

The selected product. Of type T dependent on ShoppableImageItem.

showDots

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

shopAllButtonParams

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

onSelected

The lambda to be invoked when a product is selected. Of generic type <T>.

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
val onSelected: (T?) -> Unit
Link copied to clipboard
Link copied to clipboard
val selectedProduct: T? = null
Link copied to clipboard
Link copied to clipboard
val showDots: Boolean = true