Package-level declarations

Functions

Link copied to clipboard
fun EventSchemaBuilderScope.DismissModalBottomSheet(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, modalBottomSheetId: String)

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

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

Shows a modal bottom sheet built from tiles, registered under modalBottomSheetId so a later DismissModalBottomSheet can close it — unlike the plain bottom sheet, this one dims and blocks the content behind it. isCancellable decides whether the user can dismiss it by gesture or scrim tap, 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 modalBottomSheetId is already in use; onDisplay once, when the sheet actually enters composition on screen.