BoxTileSchema

@Serializable
@SerialName(value = "Box")
data class BoxTileSchema(val id: String, val tiles: SerializableImmutableList<TileSchema>, val events: SerializableImmutableList<EventSchema>?, val style: StyleSchema, val searchableTerms: SerializableImmutableList<String>?, val visibility: TileSchema.Visibility, val alignment: AlignmentSchema.TwoDimensional) : TileSchema

Renders a Compose Box that stacks its tiles on top of each other in declaration order (later children paint above earlier ones), positioning all of them with alignment.

Triggers dispatched:

  • OnDisplayEventTrigger — fired once when the tile enters composition (keyed by tile id).

  • OnClickEventTrigger — fired when the box is tapped.

  • OnLongPressEventTrigger — fired when the box is long-pressed.

Both are wired only when the matching event is declared on this tile; with neither declared, the box is not made interactive at all.

Notes: unlike ColumnTileSchema and RowTileSchema, this tile is never scrollable and publishes no scope CompositionLocal, so children cannot use column/row scope modifiers such as weight.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
@SerialName(value = "alignment")
val alignment: AlignmentSchema.TwoDimensional
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 = "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 = "tiles")
val tiles: SerializableImmutableList<TileSchema>
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