61 const std::string& webViewId,
62 const std::string& messageId,
63 const std::string& payload);
74 const std::string& accountId,
75 const std::string& webViewId,
76 const std::string&
action);
107 std::map<std::string, WebViewHandlerPtr> handlersIdMap {};
This class manages plugin (un)loading.
This is an abstract class (API) that needs to be implemented by a plugin.
This class provides the interface between loaded WebViewHandlers and client webviews.
void sendWebViewMessage(const std::string &pluginId, const std::string &webViewId, const std::string &messageId, const std::string &payload)
Transmits a message from the client's webview to the plugin.
void sendWebViewDetach(const std::string &pluginId, const std::string &webViewId)
Transmits a detach event from the client's webview to the plugin.
NON_COPYABLE(WebViewServicesManager)
std::string sendWebViewAttach(const std::string &pluginId, const std::string &accountId, const std::string &webViewId, const std::string &action)
Transmits an attach event from the client's webview to the plugin.
void emitSignal(Args... args)
std::unique_ptr< WebViewHandler > WebViewHandlerPtr
Simple macro to hide class' copy constructor and assignment operator.