DismissBottomSheet

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

Closes the bottom sheet registered under bottomSheetId. Does not consume incomingData. Dispatches onSuccess (no data) when the sheet was dismissed; onFailure (carrying the thrown exception) when no bottom sheet is showing under bottomSheetId.

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).

bottomSheetId

Id of the DisplayBottomSheet sheet to close.