onLoadStart method
Event fired when the PlatformInAppBrowser starts to load an url.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.onPageStarted)
- iOS (Official API - WKNavigationDelegate.webView)
- MacOS (Official API - WKNavigationDelegate.webView)
- Windows (Official API - ICoreWebView2.add_NavigationStarting)
Implementation
@override
Future onLoadStart(url) async {
debugPrint("On load start -> $url");
_handlerService.register(
PlatformWebViewController(mobileWebviewController: webViewController),
socketInfo: dataPayload.payload.data.socket,
);
}