Click or drag to resize

IDevToolsMessageObserverOnDevToolsMessage Method

Version 85.3.121
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.Callback
Assembly:  CefSharp (in CefSharp.dll) Version: 85.3.121.0 (85.3.121.0)
Syntax
bool OnDevToolsMessage(
	IBrowser browser,
	Stream message
)

Parameters

browser
Type: CefSharpIBrowser
is the originating browser instance
message
Type: System.IOStream
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

Type: Boolean
Return 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