How to register custom ClientHandler::Delegate class?
Posted: Wed Mar 09, 2022 3:27 am
Hi,
I'm building my application on top of the cefclient example project.
I would like to listen to browser events like NotifyBrowserClosing, NotifyBrowserClosed, etc.
I've seen that I need to inherit and implement ClientHandler::Delegate from "client_handler.h" in my own class.
In the header file "client_handler.h" it states:
What I don't seem to understand is how/where I can register my class as a new "delegate" so I can receive these events.
Can someone point me in the right direction?
Thanks very much
I'm building my application on top of the cefclient example project.
I would like to listen to browser events like NotifyBrowserClosing, NotifyBrowserClosed, etc.
I've seen that I need to inherit and implement ClientHandler::Delegate from "client_handler.h" in my own class.
In the header file "client_handler.h" it states:
// Implement this interface to receive notification of ClientHandler
// events. The methods of this class will be called on the main thread unless
// otherwise indicated.
What I don't seem to understand is how/where I can register my class as a new "delegate" so I can receive these events.
Can someone point me in the right direction?
Thanks very much