DisplayModalBottomSheet

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.

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

modalBottomSheetId

Id the sheet is registered under, matched by a later DismissModalBottomSheet.

isCancellable

Whether the user can dismiss the sheet by gesture or scrim tap. Defaults to true.

fill

Whether the sheet takes the full available height. Defaults to false.

allowsPartialExpansion

Whether the sheet stops at a half-expanded state before reaching full height. Defaults to false.

tiles

Tile tree rendered as the sheet's content.