triggerEvents

suspend fun triggerEvents(trigger: EventTrigger, data: Any? = null)

Looks up every currently-registered EventSchema on this screen whose trigger equals trigger (via tilesEventHolder) and runs each one — the entry point for a screen-level trigger like onDisplay(), which isn't tied to a single tile's own events list the way dev.catbit.mosaic.client.ui.sdui.foundation.tiles.renderer.TileRenderingScope.triggerEvent is.

Parameters

trigger

the trigger to look up matching events for.

data

value passed as every matching event's incomingData. null when nothing is forwarded.