onTileEvent

open override fun TileEventScope.onTileEvent(event: TileEvent)

Applies event to this tile's local, in-memory state — the local half of a stateful tile's interaction, invoked synchronously via TileRenderingScope.dispatchEvent. The default implementation does nothing; override it on a TileHolder whose tile carries local state (checked/selected/text/etc.), pattern-matching on your own TileEvent subtype and mutating tile directly (tile = tile.copy(...)) — see CheckboxTileHolder.onTileEvent for the canonical example. This runs on the UI thread and completes before recomposition, which is why it always visually settles before whatever remote EventTrigger fired alongside it (via TileRenderingScope.triggerEvent) has a chance to run.

Receiver

TileEventScope, which lets an override recursively build new tile/event holders (via buildTileHolder/buildEventHolders) if applying the event needs to construct new ones.

Parameters

event

the local mutation to apply.