TriggerEvent

fun EventSchemaBuilderScope.TriggerEvent(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, eventId: String)

Looks up the event registered on the screen under eventId and runs it inline, letting one event chain reuse another that lives on a different tile. Forwards incomingData unchanged to the event being run. Dispatches onSuccess (no data) after the target event ran; onFailure when no event is registered under eventId (no data, logged) or when running it throws (carrying the Throwable, logged).

Parameters

id

Unique identifier of this event. Defaults to a random id.

trigger

Trigger that fires this event, built via EventTriggers.

events

Child events chained after this one, wired to its triggers (onSuccess, onFailure).

eventId

Id of the screen-registered event to run.