'Cefsharp - OnDevToolsMessage return false or true?

Please explain the meaning of the return value of the OnDevToolsMessage() function: http://cefsharp.github.io/api/99.2.x/html/M_CefSharp_Callback_IDevToolsMessageObserver_OnDevToolsMessage.htm

In the description of the function it is written:

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.

I can't figure out how to determine by what criterion or parameter when to return true and when false?

The first option - I tried to always return only the truth. In this case, the OnDevToolsMethodResult and OnDevToolsEvent functions - were never called.

The second option - I tried to always return only a false. In this case - Ondevtoolsmessage function was called OnDevToolsEvent for each call to the OnDevToolsMessage function.

And I noticed that, in fact, On Dev Tools Event is the same Ondevtoolsmessage, only with the separation of the method name and parameters.

Do I understand correctly that, in fact, you can use only or OnDevToolsMessage and divide messages into method and parameters yourself, or use OnDevToolsEvent() where it is already divided ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source