We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
You can find additional code examples in the /example folder
create customWebViewClient which extends from BridgeWebViewClient
BridgeWebViewClient
customWebViewClient.callHandler(webView, JS_MENU_INTERFACE, new JSONObject().put("selectedId", item.getItemId()).toString(), null);
customWebViewClient.registerHandler(ANDROID_INTERFACE, new BridgeHandler() { @Override public void handler(String s, CallBackFunction callBackFunction) { //... } });
WebViewJavascriptBridge.registerHandler("jsMenuCallback", function(data, responseCallback) { _log("jsMenuCallback", data) var event = new CustomEvent('appMenuSelected', { detail: JSON.parse(data) }); document.dispatchEvent(event); })
WebViewJavascriptBridge.callHandler("CallApp", { apiName: apiName, params: params }, function(result) { success(result) } )
Getting-Started