ShoppableImageItem

data class ShoppableImageItem<T>(val key: T, @FloatRange(from = 0.0, to = 1.0) val xCoordinate: Float, @FloatRange(from = 0.0, to = 1.0) val yCoordinate: Float, val content: @Composable () -> Unit, val onClick: () -> Unit? = null)

Shoppable image item data class

Constructors

Link copied to clipboard
constructor(key: T, @FloatRange(from = 0.0, to = 1.0) xCoordinate: Float, @FloatRange(from = 0.0, to = 1.0) yCoordinate: Float, content: @Composable () -> Unit, onClick: () -> Unit? = null)

Properties

Link copied to clipboard
val content: @Composable () -> Unit

Composable content for the product to display.

Link copied to clipboard
val key: T

Generic key to identify a product tag.

Link copied to clipboard
val onClick: () -> Unit? = null

Click action for click on product tag.

Link copied to clipboard

X coordinate for dot placement as percentage. A value of 0.0f or 1.0f will make the dot not show since it will try to center the dot on the border.

Link copied to clipboard

Y coordinate for dot placement as percentage. A value of 0.0f or 1.0f will make the dot not show since it will try to center the dot on the border.