ImageTileSchema

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

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. contentScale maps onto the Compose ContentScale of the same name, and contentDescription, alpha and alignment are forwarded as-is.

Triggers dispatched: none. The tile emits no trigger of its own and is not clickable, so any events declared on it are never fired.

Notes: use AsyncImageTileSchema for images that come from the network or from raw bytes; this tile can only show assets that ship with the client.

Constructors

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

Types

Link copied to clipboard

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 = "contentDescription")
val contentDescription: String?
Link copied to clipboard
@SerialName(value = "contentScale")
val contentScale: ImageTileSchema.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 = "resourceName")
val resourceName: String
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