Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to get notified when a webview.LoadUrl(url) is finished?

$
0
0

I’m using the WebView and have gotten all the functionality I need working smoothly except for one feature: the ProgressBar. I want to use a simple progress bar that shows after a webview.LoadUrl(url) is called and stops playing when the url is finished loading. Starting the process is easy, but how do I know when the loading is finished?

Cruising the internet, one technique I found is to implement the onPageFinished() method and the simplest example is the following java code:

aWebView.setWebViewClient(new WebViewClient() {

public void onPageFinished(WebView view, String url) { // do your stuff here } });

So, how to do this in Xamarin.Android? Any suggestions would be most welcomed - Thanks!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>