onContentLoading method

  1. @override
void onContentLoading(
  1. WebUri? url
)
inherited

Called when the WebView is about to load content for the current navigation.

This fires before any content is loaded (including scripts added with addScriptToExecuteOnDocumentCreated), after onLoadStart and before onDOMContentLoaded.

This event does not fire for same-page navigations such as fragment changes or history.pushState.

url represents the URL corresponding to the page navigation that triggered this callback.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • url: all platforms

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

Implementation

@override
void onContentLoading(WebUri? url) {}