Click or drag to resize

IDevToolsMessageObserver Methods

Version 91.1.160

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