Click or drag to resize

JsDialogHandler Class

Version 101.0.180
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: 101.0.180.0 (101.0.180.0)
Syntax
public class JsDialogHandler : IJsDialogHandler

The JsDialogHandler type exposes the following members.

Constructors
  NameDescription
Public methodJsDialogHandler
Initializes a new instance of the JsDialogHandler class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates 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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also