ShoppableImageBackgroundParams

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

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

Parameters

painter

Painter used to draw the image.

contentDescription

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.

aspectRatio

Aspect ratios provided by Skapa.

onClick

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

Constructors

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

Properties

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