diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9be54987..812b473f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,39 +15,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -70,8 +38,8 @@ - - + + @@ -419,7 +387,7 @@ - + @@ -438,8 +406,8 @@ - - + + @@ -695,8 +663,8 @@ - - + + diff --git a/lib/src/in_app_webview.dart b/lib/src/in_app_webview.dart index a3077ac2..4769baf3 100755 --- a/lib/src/in_app_webview.dart +++ b/lib/src/in_app_webview.dart @@ -156,7 +156,7 @@ class InAppWebView extends StatefulWidget { ///Also, unlike iOS that has [WKUserScript](https://developer.apple.com/documentation/webkit/wkuserscript) that ///can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code ///used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS but just after some milliseconds (< ~100ms). - ///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the fetch requests will be intercept for sure. + ///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the ajax requests will be intercept for sure. final Future Function(InAppWebViewController controller, AjaxRequest ajaxRequest) shouldInterceptAjaxRequest; ///Event fired whenever the `readyState` attribute of an `XMLHttpRequest` changes. @@ -168,7 +168,7 @@ class InAppWebView extends StatefulWidget { ///Also, unlike iOS that has [WKUserScript](https://developer.apple.com/documentation/webkit/wkuserscript) that ///can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code ///used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS but just after some milliseconds (< ~100ms). - ///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the fetch requests will be intercept for sure. + ///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the ajax requests will be intercept for sure. final Future Function(InAppWebViewController controller, AjaxRequest ajaxRequest) onAjaxReadyStateChange; ///Event fired as an `XMLHttpRequest` progress. @@ -180,7 +180,7 @@ class InAppWebView extends StatefulWidget { ///Also, unlike iOS that has [WKUserScript](https://developer.apple.com/documentation/webkit/wkuserscript) that ///can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code ///used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS but just after some milliseconds (< ~100ms). - ///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the fetch requests will be intercept for sure. + ///Inside the `window.addEventListener("flutterInAppBrowserPlatformReady")` event, the ajax requests will be intercept for sure. final Future Function(InAppWebViewController controller, AjaxRequest ajaxRequest) onAjaxProgress; ///Event fired when an request is sent to a server through [Fetch API](https://developer.mozilla.org/it/docs/Web/API/Fetch_API).