Package-level declarations

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun EventSchemaBuilderScope.DisplayBottomSheet(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, bottomSheetId: String, isCancellable: Boolean = true, fill: Boolean = false, allowsPartialExpansion: Boolean = false, tiles: TileSchemaBuilderScope.() -> Unit)

Shows a non-modal bottom sheet built from tiles, registered under bottomSheetId so a later DismissBottomSheet can close it — unlike the modal variant, it does not dim or block the content behind it. isCancellable decides whether the user can dismiss it by gesture, fill whether it takes the full height, and allowsPartialExpansion whether it stops at a half-expanded state before reaching full height. Does not consume incomingData. Dispatches onSuccess (no data) when the sheet was added; onFailure (carrying the thrown exception) when it could not be added, typically because bottomSheetId is already in use; onDisplay once, when the sheet actually enters composition on screen.