setCanClose

open fun setCanClose(canClose: Boolean)

Sets whether @self can be closed.

If set to FALSE, the close button, shortcuts and method@Dialog.close will result in signal@Dialog::close-attempt being emitted instead, and bottom sheet close swipe will be disabled. method@Dialog.force_close still works.

Since

1.5

Parameters

canClose

whether to allow closing