DismissSnackbar

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

Hides the snackbar currently showing on the screen, by broadcasting a dismiss command on the screen channel. Does not consume incomingData. Dispatches onSuccess (no data) always, right after the command is broadcast — the broadcast is fire-and-forget, so this fires even when no snackbar is showing.

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 trigger (onSuccess).