I'm looking for the event of a Android WebView that is equivalent to the "Navigating" event of a WPF WebBrowser, or the "ShouldStartLoad" of a IOS UiWebView.
I found "shouldOverrideUrlLoading", but I don't know how to use it because the constructor needs an URL...
I would like to intercept the Url before navigating, and cancel the navigation for some URLs...
I'm using Xamarin in Visual Studio.
WPF equivalent :
webBrowser.Navigating += WebBrowserNavigating;
private void WebBrowserNavigating(object sender, NavigatingEventArgs e)
{
if (//condition)
e.Cancel = true;
//Do something else
}