onContentLoading method
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:
- Windows WebView2 (Official API - ICoreWebView2.add_ContentLoading)
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) {}