Ring Daemon 16.0.0
|
This is an abstract class (API) that needs to be implemented by a plugin. More...
#include <webviewhandler.h>
Public Member Functions | |
std::string | id () const |
Returns the dataPath of the plugin that created this WebViewHandler. | |
virtual std::string | pluginWebViewAttach (const std::string &accountId, const std::string &webViewId, const std::string &action)=0 |
Called by the daemon whenever the client attaches a new webview. | |
virtual void | pluginWebViewDetach (const std::string &webViewId)=0 |
Called by the daemon whenever the client detaches a webview. | |
virtual void | pluginWebViewMessage (const std::string &webViewId, const std::string &messageId, const std::string &payload)=0 |
Called by the daemon whenever the client webview sends a message to the plugin. | |
virtual void | setId (const std::string &id) final |
Should be called by the WebViewHandler creator to set the plugin's id_ variable. | |
virtual | ~WebViewHandler () |
This is an abstract class (API) that needs to be implemented by a plugin.
Any plugin that wants to open a WebView needs to implement this class.
Definition at line 28 of file webviewhandler.h.
|
inlinevirtual |
Definition at line 31 of file webviewhandler.h.
|
inline |
Returns the dataPath of the plugin that created this WebViewHandler.
Definition at line 36 of file webviewhandler.h.
Referenced by setId().
|
pure virtual |
Called by the daemon whenever the client attaches a new webview.
|
pure virtual |
Called by the daemon whenever the client detaches a webview.
|
pure virtual |
Called by the daemon whenever the client webview sends a message to the plugin.
Should be called by the WebViewHandler creator to set the plugin's id_ variable.
Definition at line 41 of file webviewhandler.h.
References id().