onLoadStart method
Event fired when the WebView starts to load an url.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onPageStarted)
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Windows WebView2 (Official API - ICoreWebView2.add_NavigationStarting)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
Implementation
@override
Future onLoadStart(url) async {
debugPrint("On load start -> $url");
_handlerService.register(
PlatformWebViewController(mobileWebviewController: webViewController),
socketInfo: dataPayload.payload.data.socket,
);
}