IDevToolsMessageObserver Methods |
The IDevToolsMessageObserver type exposes the following members.
Name | Description | |
---|---|---|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
OnDevToolsAgentAttached |
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.
| |
OnDevToolsAgentDetached |
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.
| |
OnDevToolsEvent |
Method that will be called on receipt of a DevTools protocol event.
| |
OnDevToolsMessage |
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).
| |
OnDevToolsMethodResult |
Method that will be called after attempted execution of a DevTools protocol
|