ShoppableImageBackgroundParams

data class ShoppableImageBackgroundParams(val painter: Painter, val contentDescription: String?, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio3by4, val onClick: () -> Unit)(source)

Data class to be used for the background image used together with ShoppableImage.

Constructors

Link copied to clipboard
constructor(painter: Painter, contentDescription: String?, aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio3by4, onClick: () -> Unit)

Properties

Link copied to clipboard

Aspect ratios provided by Skapa.

Link copied to clipboard

text used by accessibility services to describe what this image represents. This should always be provided unless this image is used for decorative purposes, and does not represent a meaningful action that a user can take. This text should be localized, such as by using androidx.compose.ui.res.stringResource or similar.

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

Use it to toggle dots/tags visibility or use for custom action.

Link copied to clipboard

Painter used to draw the image.