ModalContext

interface ModalContext<T>(source)

Configures a modal that is shown viainvoke.

Properties

Link copied to clipboard

Indicates whether pointer events outside the modal View should be passed through to underlying Views. The default is false.

Link copied to clipboard
abstract var background: Paint

Paint used to fill the background behind the modal View.

Link copied to clipboard

Determines how the modal's background affects those from any underlying modals. Replace will swap out any underlying background with this one, so there is no stacking, while Overlay will simply add this background atop any existing one.

Link copied to clipboard

Notified whenever Pointer motion events occur outside the modal View

Link copied to clipboard

Notified whenever Pointer events occur outside the modal View

Functions

Link copied to clipboard
abstract fun completed(result: T)

Called when the modal should dismiss with the given result.

Link copied to clipboard
abstract fun reLayout()

Causes the modal's layout to be recalculated. This is useful when trying to animate a modal's position.