CefJSDialogHandler

Implement this interface to handle events related to JavaScript dialogs. The methods of this class will be called on the UI thread.

Inheritors

Types

Link copied to clipboard
Supported JavaScript dialog types.

Functions

Link copied to clipboard
abstract 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.
Link copied to clipboard
abstract fun onDialogClosed(browser: CefBrowser)
Called when the default implementation dialog is closed.
Link copied to clipboard
abstract fun onJSDialog(browser: CefBrowser, origin_url: String, dialog_type: CefJSDialogHandler.JSDialogType, message_text: String, default_prompt_text: String, callback: CefJSDialogCallback, suppress_message: BoolRef): Boolean
Called to run a JavaScript dialog.
Link copied to clipboard
abstract fun onResetDialogState(browser: CefBrowser)
Called to cancel any pending dialogs and reset any saved dialog state.