onLoadStart method

  1. @override
Future onLoadStart(
  1. WebUri? url
)

Event fired when the WebView starts to load an url.

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
Future onLoadStart(url) async {
  debugPrint("On load start -> $url");
  _handlerService.register(
    PlatformWebViewController(mobileWebviewController: webViewController),
    socketInfo: dataPayload.payload.data.socket,
  );
}