Package-level declarations

Functions

Link copied to clipboard

Loads the image from raw, already-decoded bytes.

Link copied to clipboard
fun TileSchemaBuilderScope.AsyncImage(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = {}, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, model: AsyncImageTileSchema.Model, contentDescription: String? = null, contentScale: AsyncImageTileSchema.ContentScale = fitContentScale(), alpha: Float = 1.0f, clipToBounds: Boolean = true, alignment: AlignmentSchema.TwoDimensional = alignToCenter())

Renders a Coil AsyncImage that loads its content from model — a remote URL (urlImageModel), raw bytes (arrayOfBytesImageModel) or a base64 string (base64ImageModel, decoded on the client before being handed to Coil). Dispatches onAsyncImageLoadStart / onAsyncImageLoadSuccess / onAsyncImageLoadFailure on every load state change, including reloads triggered by a model change, so they may fire more than once over the tile's lifetime. The tile is not clickable and fires no display trigger — wrap it in a Box or Card for tap handling. There is no built-in placeholder or error image: render one yourself by reacting to the load triggers.

Link copied to clipboard

Loads the image from a base64-encoded string, decoded on the client before being handed to Coil.

Link copied to clipboard

Crops the image to fill its bounds, preserving aspect ratio and cropping overflow.

Link copied to clipboard

Stretches the image to fill its bounds exactly, ignoring aspect ratio.

Link copied to clipboard

Scales the image so its height fills the bounds, preserving aspect ratio.

Link copied to clipboard

Scales the image so its width fills the bounds, preserving aspect ratio.

Link copied to clipboard

Scales the image to fit entirely within its bounds, preserving aspect ratio.

Link copied to clipboard
fun TileSchemaBuilderScope.Icon(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = { size( width = wrapHorizontally(), height = wrapVertically() ) }, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, icon: IconSchema)

Renders a single Material Symbol described by icon, honouring its name, color, size and style. This is the standalone icon tile — its style is applied to the icon's own layout node. Dispatches no triggers at all — not even onDisplay — and is not clickable, so any events declared on it are never fired. Use IconButton for a tappable icon, or wrap this tile in a clickable container.

Link copied to clipboard
fun TileSchemaBuilderScope.Image(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = {}, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, resourceName: String, contentDescription: String? = null, contentScale: ImageTileSchema.ContentScale = imageFitContentScale(), alpha: Float = 1.0f, alignment: AlignmentSchema.TwoDimensional = alignToCenter())

Renders a Compose Image from a drawable bundled with the client application. resourceName is looked up in the app's DrawableResourcesHolder; when no resource is registered under that name nothing is rendered at all — there is no fallback and no error trigger. Dispatches no triggers and is not clickable. Use AsyncImage for images that come from the network or from raw bytes — this tile can only show assets that ship with the client.

Link copied to clipboard

Crops the image to fill its bounds, preserving aspect ratio and cropping overflow.

Link copied to clipboard

Stretches the image to fill its bounds exactly, ignoring aspect ratio.

Link copied to clipboard

Scales the image so its height fills the bounds, preserving aspect ratio.

Link copied to clipboard

Scales the image so its width fills the bounds, preserving aspect ratio.

Link copied to clipboard

Scales the image to fit entirely within its bounds, preserving aspect ratio.

Link copied to clipboard

Scales the image down to fit its bounds only if it overflows them, preserving aspect ratio.

Link copied to clipboard

Scales the image down to fit its bounds only if it overflows them, preserving aspect ratio.

Link copied to clipboard

Loads the image from a remote url.