ModalManager
Provides a way to create Modals which are specialized pop-ups that block until some value can be produced. Modals are great for getting user input and preventing interaction with the app until the user has responded.
Types
Link copied to clipboard
class Modal(view: View, layout: ConstraintDslContext.(Bounds) -> Unit = { it.center eq parent.center }) : ModalManager.ModalType
A Modal that is positioned relative to the Display only.
Link copied to clipboard
Configures a modal that is shown viainvoke.
Link copied to clipboard
class RelativeModal(view: View, relativeTo: View, layout: ConstraintDslContext.(Bounds, Rectangle) -> Unit = { modal, _ -> modal.center eq parent.center }) : ModalManager.ModalType
A Modal that is positioned relative to another View and the Display.
Functions
Link copied to clipboard
abstract suspend operator fun <T> invoke(contents: ModalManager.ModalContext<T>.() -> ModalManager.ModalType): T
Creates a modal that blocks until it has input and generates a result T.