onBeforeUnloadDialog
open fun onBeforeUnloadDialog(browser: CefBrowser, message_text: String, is_reload: Boolean, callback: CefJSDialogCallback): Boolean
Called to run a dialog asking the user if they want to leave a page. Return false to use the default dialog implementation. Return true if the application will use a custom dialog or if the callback has been executed immediately. Custom dialogs may be either modal or modeless. If a custom dialog is used the application must execute callback once the custom dialog is dismissed.
Return
false to use the default dialog implementation. Return true if the application will use a custom dialog.
Parameters
browser
The corresponding browser.
message_text
The text to be displayed.
is_reload
true if the page is reloaded.
callback
execute callback once the custom dialog is dismissed.