onLoadStart method
Event fired when the InAppBrowser
starts to load an url
.
Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.onPageStarted)
- iOS (Official API - WKNavigationDelegate.webView)
Implementation
@override
Future onLoadStart(url) async {
final status = url?.queryParameters["status"];
final txRef = url?.queryParameters["tx_ref"];
final id = url?.queryParameters["transaction_id"];
final hasRedirected = status != null && txRef != null;
if (hasRedirected && url != null) {
hasCompletedProcessing = hasRedirected;
_processResponse(url, status, txRef, id);
}
}