The following setWebViewClient code once open, registerHandler code will be invalid, is conflict? Consult a great god how broken?
//webView. SetWebViewClient (new WebViewClient () {
//@ Override
//public Boolean shouldOverrideUrlLoading (WebView view, String url) {
//
//if (url. StartsWith (tel: "") | | url. StartsWith (" mailto:")) {
////open the android phone or email
//Intent Intent=new Intent (Intent. ACTION_VIEW, Uri, parse (url));
//startActivity (intent);
//
//}
//
//return true;
//}
//});
WebView. RegisterHandler (" login ", new BridgeHandler () {
@ Override
Public void handler (String data, CallBackFunction function) {
Function. OnCallBack (" login ");
}
});
CodePudding user response:
Do you solved
CodePudding user response: