AsyncImageTileSchema

@Serializable
@SerialName(value = "AsyncImage")
data class AsyncImageTileSchema(val id: String, val events: SerializableImmutableList<EventSchema>?, val style: StyleSchema, val searchableTerms: SerializableImmutableList<String>?, val visibility: TileSchema.Visibility, val model: AsyncImageTileSchema.Model, val contentDescription: String?, val contentScale: AsyncImageTileSchema.ContentScale, val alpha: Float, val clipToBounds: Boolean, val alignment: AlignmentSchema.TwoDimensional) : TileSchema

Renders a Coil AsyncImage that loads its content from model, which can be a remote Model.Url, raw Model.ArrayOfBytes, or a Model.Base64 string (decoded on the client before being handed to Coil). contentScale maps onto the Compose ContentScale of the same name, and contentDescription, alpha, clipToBounds and alignment are forwarded as-is.

Triggers dispatched:

  • OnAsyncImageLoadStartEventTrigger — when Coil enters its loading state.

  • OnAsyncImageLoadSuccessEventTrigger — when the image has been decoded and drawn.

  • OnAsyncImageLoadFailureEventTrigger — when the load fails.

These fire on every load state change, including reloads after the model changes, so they may fire more than once over the tile's lifetime.

Notes: the tile is not clickable and fires no display trigger — wrap it in a Box or Card when you need tap handling. There is no built-in placeholder or error image: render one yourself by reacting to the load triggers.

Constructors

Link copied to clipboard
constructor(id: String, events: SerializableImmutableList<EventSchema>?, style: StyleSchema, searchableTerms: SerializableImmutableList<String>?, visibility: TileSchema.Visibility, model: AsyncImageTileSchema.Model, contentDescription: String?, contentScale: AsyncImageTileSchema.ContentScale, alpha: Float, clipToBounds: Boolean, alignment: AlignmentSchema.TwoDimensional)

Types

Link copied to clipboard
@Serializable
sealed interface Model

Properties

Link copied to clipboard
@SerialName(value = "alignment")
val alignment: AlignmentSchema.TwoDimensional
Link copied to clipboard
@SerialName(value = "alpha")
val alpha: Float
Link copied to clipboard
@SerialName(value = "clipToBounds")
val clipToBounds: Boolean
Link copied to clipboard
@SerialName(value = "contentDescription")
val contentDescription: String?
Link copied to clipboard
@SerialName(value = "contentScale")
val contentScale: AsyncImageTileSchema.ContentScale
Link copied to clipboard
@SerialName(value = "events")
open override val events: SerializableImmutableList<EventSchema>?
Link copied to clipboard
@SerialName(value = "id")
open override val id: String
Link copied to clipboard
@SerialName(value = "model")
val model: AsyncImageTileSchema.Model
Link copied to clipboard
@SerialName(value = "searchableTerms")
open override val searchableTerms: SerializableImmutableList<String>?
Link copied to clipboard
@SerialName(value = "style")
open override val style: StyleSchema
Link copied to clipboard
@SerialName(value = "visibility")
open override val visibility: TileSchema.Visibility

Functions

Link copied to clipboard
open fun isGone(): Boolean
Link copied to clipboard
open fun isVisible(): Boolean