Click or drag to resize

IDevToolsMessageObserver Interface

Version 90.6.50
Callback interface for AddDevToolsMessageObserver(IDevToolsMessageObserver). The methods of this class will be called on the CEF UI thread.

Namespace:  CefSharp.Callback
Assembly:  CefSharp (in CefSharp.dll) Version: 90.6.50.0 (90.6.50.0)
Syntax
public interface IDevToolsMessageObserver : IDisposable

The IDevToolsMessageObserver type exposes the following members.

Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodOnDevToolsAgentAttached
Method that will be called when the DevTools agent has attached. This will generally occur in response to the first message sent while the agent is detached.
Public methodOnDevToolsAgentDetached
Method that will be called when the DevTools agent has detached. Any method results that were pending before the agent became detached will not be delivered, and any active event subscriptions will be canceled.
Public methodOnDevToolsEvent
Method that will be called on receipt of a DevTools protocol event.
Public methodOnDevToolsMessage
Method that will be called on receipt of a DevTools protocol message. Method result dictionaries include an "id" (int) value that identifies the orginating method call sent from IBrowserHost.SendDevToolsMessage, and optionally either a "result" (dictionary) or "error" (dictionary) value. The "error" dictionary will contain "code" (int) and "message" (string) values. Event dictionaries include a "method" (string) value and optionally a "params" (dictionary) value. See the DevTools protocol documentation at https://chromedevtools.github.io/devtools-protocol/ for details of supported method calls and the expected "result" or "params" dictionary contents. JSON dictionaries can be parsed using the CefParseJSON function if desired, however be aware of performance considerations when parsing large messages (some of which may exceed 1MB in size).
Public methodOnDevToolsMethodResult
Method that will be called after attempted execution of a DevTools protocol
Top
See Also