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:
- Set a higher database quota for SQLite.
This was done in the old times calling
WebView.setWebChromeClientand passing as parameter an instance ofCordovaChromeClientwith itsonExceededDatabaseQuotamethod overridden. - Override URL loading.
This was done in Cordova 3.x and lower calling
WebView.setWebViewClientand passing as parameter an instance ofCordovaWebViewClientwith itsshouldOverrideUrlLoadingmethod overridden.
The old
CordovaWebViewClientis now theSystemWebViewClientThe old
CordovaChromeClientis now theSystemWebChromeClientTo get the
SystemWebViewuse the getView and cast it