ShoppableImage

constructor(imageParams: ShoppableImageBackgroundParams, products: List<ShoppableImageItem<T?>>, modifier: Modifier = Modifier, selectedProduct: T? = null, showDots: Boolean = true, shopAllButtonParams: ShopAllButtonParams? = null, onSelected: (T?) -> Unit)

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>.