UIEvent

sealed interface UIEvent

The 3 commands a TileRenderingScope emits through its onEvent sink — the wire between a tile's own Compose interaction handling and the screen's state holder, which observes these and mutates the live tile tree accordingly. Every TileRenderingScope method (triggerEvent, dispatchEvent, dispatchGroupEvent) produces exactly one of these.

Inheritors

Types

Link copied to clipboard
data class EventSchemaHolderUIEvent(val events: List<EventSchema>, val data: Any?) : UIEvent

Emitted by TileRenderingScope.triggerEvent — run every entry in events (already filtered to the ones whose trigger matched), each with data as its incomingData.

Link copied to clipboard
data class TileEventHolderUIEvent(val tileId: String, val event: TileEvent) : UIEvent

Emitted by TileRenderingScope.dispatchEvent — deliver event to the TileHolder whose id equals tileId, via that holder's own onTileEvent.

Link copied to clipboard

Emitted by TileRenderingScope.dispatchGroupEvent — deliver event to every TileHolder in the whole tree whose handlesGroupEvent returns true for it.