addDialog

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

Shows a dialog built from tileSchemas, registered under id.

Parameters

id

id to register this dialog under. Adding fails if this id is already in use by a currently-showing dialog.

isCancellable

whether the back gesture or a scrim tap dismisses it.

usePlatformDefaultWidth

true keeps the platform's default dialog width; false lets the dialog size itself from its content.

tileSchemas

the dialog's content.