TilesOverlaysEditor

Surface a screen's TilesManager exposes for adding/dismissing its id-addressed, stackable overlays — bottom sheets, modal bottom sheets, and dialogs — the collaborator behind dev.catbit.mosaic.client.ui.sdui.foundation.events.EventRunningScope.tilesOverlaysEditor, and in turn behind DisplayBottomSheet/DismissBottomSheet, DisplayModalBottomSheet/ DismissModalBottomSheet, and DisplayDialog/DismissDialog.

These three overlay kinds are addressed by an id the caller chooses and can genuinely fail to add (typically because that id is already in use) — unlike NavigationDrawer/Snackbar, which are pure broadcast commands with no id and no failure mode, and so aren't part of this interface at all. A dismiss doesn't remove the overlay from the tree instantly — it starts a two-phase animation handshake (flip a dismissing flag, let the exit animation play, then actually remove it), except for Dialog, whose dismissal has no exit animation to wait for.

Inheritors

Functions

Link copied to clipboard
abstract fun addBottomSheet(id: String, isCancellable: Boolean, fill: Boolean, allowsPartialExpansion: Boolean, tileSchemas: List<TileSchema>): Result<Unit>

Shows a non-modal bottom sheet built from tileSchemas, registered under id so a later dismissBottomSheet call can target it.

Link copied to clipboard
abstract fun addDialog(id: String, isCancellable: Boolean, usePlatformDefaultWidth: Boolean, tileSchemas: List<TileSchema>): Result<Unit>

Shows a dialog built from tileSchemas, registered under id.

Link copied to clipboard
abstract fun addModalBottomSheet(id: String, isCancellable: Boolean, fill: Boolean, allowsPartialExpansion: Boolean, tileSchemas: List<TileSchema>): Result<Unit>

Shows a modal bottom sheet built from tileSchemas, registered under id — unlike addBottomSheet, this dims and blocks the content behind it.

Link copied to clipboard
abstract fun dismissBottomSheet(id: String): Result<Unit>

Closes the non-modal bottom sheet registered under id, starting its two-phase dismissal animation.

Link copied to clipboard
abstract fun dismissDialog(id: String): Result<Unit>

Closes the dialog registered under id. Unlike the bottom sheet variants, this resolves without waiting for an exit animation.

Link copied to clipboard

Closes the modal bottom sheet registered under id, starting its two-phase dismissal animation.