DismissDialog
fun EventSchemaBuilderScope.DismissDialog(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, dialogId: String)
Closes the dialog registered under dialogId. Does not consume incomingData. Dispatches onSuccess (no data) when the dialog was dismissed; onFailure (carrying the thrown exception) when no dialog is showing under dialogId.
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).
dialogId
Id of the DisplayDialog dialog to close.