IDevToolsMessageObserverOnDevToolsMessage Method |
Version 130.1.90
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).
Namespace: CefSharp.CallbackAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax bool OnDevToolsMessage(
IBrowser browser,
Stream message
)
bool OnDevToolsMessage(
IBrowser^ browser,
Stream^ message
)
Parameters
- browser IBrowser
- is the originating browser instance
- message Stream
- is a UTF8-encoded JSON dictionary representing either a method result or an event.
is only valid for the scope of this callback and should be copied if necessary
Return Value
BooleanReturn true if the message was handled or false if the message
should be further processed and passed to the OnDevToolsMethodResult or
OnDevToolsEvent methods as appropriate.
See Also