I'm upgrading some legacy Cordova 2.x and 3.x apps to version 5.1.0. In the old projects the WebView was customized using the now gone CordovaChromeClient
and CordovaWebViewClient
classes.
Is there a replacement for these classes in the new API?
In particular, I'd like to:
WebView.setWebChromeClient
and passing as parameter an instance of CordovaChromeClient
with its onExceededDatabaseQuota
method overridden.WebView.setWebViewClient
and passing as parameter an instance of CordovaWebViewClient
with its shouldOverrideUrlLoading
method overridden.The old CordovaWebViewClient
is now the SystemWebViewClient
The old CordovaChromeClient
is now the SystemWebChromeClient
To get the SystemWebView
use the getView and cast it
((SystemWebView)appView.getView())