onUpdateVisitedHistory method

  1. @override
void onUpdateVisitedHistory(
  1. WebUri? url,
  2. bool? isReload
)
override

Event fired when the host application updates its visited links database. This event is also fired when the navigation state of the WebView changes through the usage of javascript History API functions (pushState(), replaceState()) and onpopstate event or, also, when the javascript window.location changes without reloading the webview (for example appending or modifying a hash to the url).

url represents the url being visited.

isReload indicates if this url is being reloaded.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • url: all platforms
  • isReload:
    • Android WebView

Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.

Implementation

@override
void onUpdateVisitedHistory(WebUri? url, bool? isReload) {}