onPageStarted method

  1. @override
void onPageStarted(
  1. WebView webView,
  2. String url
)

Notify the host application that a page has started loading.

This method is called once for each main frame load so a page with iframes or framesets will call onPageStarted one time for the main frame. This also means that onPageStarted will not be called when the contents of an embedded frame changes, i.e. clicking a link whose target is an iframe, it will also not be called for fragment navigations (navigations to #fragment_id).

Implementation

@override
void onPageStarted(android_webview.WebView webView, String url) {
  onPageStartedCallback(url);
}