Click or drag to resize

JsDialogHandler Class

Version 130.1.90
Inherit from this class to handle events related to JavaScript dialogs. The methods of this class will be called on the CEF UI thread.
Inheritance Hierarchy
SystemObject
  CefSharp.HandlerJsDialogHandler

Namespace: CefSharp.Handler
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public class JsDialogHandler : IJsDialogHandler

The JsDialogHandler type exposes the following members.

Constructors
 NameDescription
Public methodJsDialogHandlerInitializes a new instance of the JsDialogHandler class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnBeforeUnloadDialog 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.
Protected methodOnDialogClosed Called when the default implementation dialog is closed.
Protected methodOnJSDialog Called to run a JavaScript dialog.
Protected methodOnResetDialogState Called to cancel any pending dialogs and reset any saved dialog state. Will be called due to events like page navigation irregardless of whether any dialogs are currently pending.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also