///Event fires when the WebView need to perform server trust authentication (certificate validation).
///The host application must return either [ServerTrustAuthResponse.CANCEL] or [ServerTrustAuthResponse.PROCEED].
///The host application must return either [ServerTrustAuthResponse] instance with [ServerTrustAuthResponseAction.CANCEL] or [ServerTrustAuthResponseAction.PROCEED].
///
///[challenge] contains data about host, port, protocol, realm, etc. as specified in the [ServerTrustChallenge].
///Event fires when the WebView need to perform server trust authentication (certificate validation).
///The host application must return either [ServerTrustAuthResponse.CANCEL] or [ServerTrustAuthResponse.PROCEED].
///The host application must return either [ServerTrustAuthResponse] instance with [ServerTrustAuthResponseAction.CANCEL] or [ServerTrustAuthResponseAction.PROCEED].
///
///[challenge] contains data about host, port, protocol, realm, etc. as specified in the [ServerTrustChallenge].
///SafeBrowsingResponse class represents the response used by the [onSafeBrowsingHit] event.
///It is used to indicate an action to take when hitting a malicious URL.
classSafeBrowsingResponse{
///If reporting is enabled, all reports will be sent according to the privacy policy referenced by [InAppWebViewController.getSafeBrowsingPrivacyPolicyUrl].
boolreport;
///Indicate the [SafeBrowsingResponseAction] to take when hitting a malicious URL.
///TEXT_AUTOSIZING boosts font size of paragraphs based on heuristics to make the text readable when viewing a wide-viewport layout in the overview mode.
///It is recommended to enable zoom support [AndroidInAppWebViewOptions.supportZoom] when using this mode.
///AndroidInAppWebViewMixedContentMode class represents an Android-specific class used to configure the WebView's behavior when a secure origin attempts to load a resource from an insecure origin.
///In this mode, the WebView will attempt to be compatible with the approach of a modern web browser with regard to mixed content.
///Some insecure content may be allowed to be loaded by a secure origin and other types of content will be blocked.
///The types of content are allowed or blocked may change release to release and are not explicitly defined.
///This mode is intended to be used by apps that are not in control of the content that they render but desire to operate in a reasonably secure environment.
///For highest security, apps are recommended to use [AndroidInAppWebViewMixedContentMode.MIXED_CONTENT_NEVER_ALLOW].
///IosInAppWebViewSelectionGranularity class represents an iOS-specific class used to set the level of granularity with which the user can interactively select content in the web view.
///IosInAppWebViewDataDetectorTypes class represents an iOS-specific class used to specify a dataDetectoryTypes value that adds interactivity to web content that matches the value.
///All of the above data types are turned into links when detected. Choosing this value will automatically include any new detection type that is added.
///IosWebViewOptionsPresentationStyle class represents an iOS-specific class used to specify the modal presentation style when presenting a view controller.
///AjaxRequest class represents a JavaScript [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) object.
classAjaxRequest{
///Data passed to as a parameter to the `XMLHttpRequest.send()` method.
dynamicdata;
///The HTTP request method of the `XMLHttpRequest` request.
Stringmethod;
///The URL of the `XMLHttpRequest` request.
Stringurl;
///An optional Boolean parameter, defaulting to true, indicating whether or not the request is performed asynchronously.
boolisAsync;
///The optional user name to use for authentication purposes; by default, this is the null value.
Stringuser;
///The optional password to use for authentication purposes; by default, this is the null value.
Stringpassword;
///The XMLHttpRequest.withCredentials property is a Boolean that indicates whether or not cross-site Access-Control requests
///should be made using credentials such as cookies, authorization headers or TLS client certificates.
///Setting withCredentials has no effect on same-site requests.
///In addition, this flag is also used to indicate when cookies are to be ignored in the response. The default is false.
boolwithCredentials;
///The HTTP request headers.
Map<dynamic,dynamic>headers;
///The state of the `XMLHttpRequest` request.
AjaxRequestReadyStatereadyState;
///The numerical HTTP [status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) of the `XMLHttpRequest`'s response.
intstatus;
///The serialized URL of the response or the empty string if the URL is null.
///If the URL is returned, any URL fragment present in the URL will be stripped away.
///The value of responseURL will be the final URL obtained after any redirects.
StringresponseURL;
///It is an enumerated string value specifying the type of data contained in the response.
///It also lets the author change the [response type](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType).
///If an empty string is set as the value of responseType, the default value of text is used.
StringresponseType;
///The text received from a server following a request being sent.
StringresponseText;
///A String containing the response's status message as returned by the HTTP server.
///Unlike [AjaxRequest.status] which indicates a numerical status code, this property contains the text of the response status, such as "OK" or "Not Found".
///If the request's readyState is in [AjaxRequestReadyState.UNSENT] or [AjaxRequestReadyState.OPENED] state, the value of statusText will be an empty string.
///If the server response doesn't explicitly specify a status text, statusText will assume the default value "OK".
StringstatusText;
///All the response headers or returns null if no response has been received. If a network error happened, an empty string is returned.
Map<dynamic,dynamic>responseHeaders;
///Event type of the `XMLHttpRequest` request.
AjaxRequestEventevent;
///Indicates the [AjaxRequestAction] that can be used to control the `XMLHttpRequest` request.
///FetchRequestCredential class is an interface for [FetchRequestCredentialDefault], [FetchRequestFederatedCredential] and [FetchRequestPasswordCredential] classes.
classFetchRequestCredential{
///Type of credentials.
Stringtype;
FetchRequestCredential({this.type});
...
...
@@ -849,8 +1040,9 @@ class FetchRequestCredential {
}
}
///
///FetchRequestCredentialDefault class represents the default credentials used by an [FetchRequest].
@@ -863,12 +1055,17 @@ class FetchRequestCredentialDefault extends FetchRequestCredential {
}
}
///
///FetchRequestFederatedCredential class represents a [FederatedCredential](https://developer.mozilla.org/en-US/docs/Web/API/FederatedCredential) type of credentials.
///The name associated with a credential. It should be a human-readable, public name.
Stringname;
///Credential's federated identity protocol.
Stringprotocol;
///Credential's federated identity provider.
Stringprovider;
///URL pointing to an image for an icon. This image is intended for display in a credential chooser. The URL must be accessible without authentication.
@@ -885,11 +1082,15 @@ class FetchRequestFederatedCredential extends FetchRequestCredential {
}
}
///
///FetchRequestPasswordCredential class represents a [PasswordCredential](https://developer.mozilla.org/en-US/docs/Web/API/PasswordCredential) type of credentials.
///The name associated with a credential. It should be a human-readable, public name.
Stringname;
///The password of the credential.
Stringpassword;
///URL pointing to an image for an icon. This image is intended for display in a credential chooser. The URL must be accessible without authentication.
@@ -905,20 +1106,33 @@ class FetchRequestPasswordCredential extends FetchRequestCredential {
}
}
///
///FetchRequest class represents a HTTP request created with JavaScript using the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch).
classFetchRequest{
///The URL of the request.
Stringurl;
///The HTTP request method used of the request.
Stringmethod;
///The HTTP request headers.
Map<String,dynamic>headers;
///Body of the request.
Uint8Listbody;
///The mode used by the request.
Stringmode;
///The request credentials used by the request.
FetchRequestCredentialcredentials;
///The cache mode used by the request.
Stringcache;
///The redirect mode used by the request.
Stringredirect;
///A String specifying no-referrer, client, or a URL.
Stringreferrer;
///The value of the referer HTTP header.
StringreferrerPolicy;
///Contains the subresource integrity value of the request.
Stringintegrity;
///The keepalive option used to allow the request to outlive the page.
boolkeepalive;
///Indicates the [FetchRequestAction] that can be used to control the request.
@@ -83,7 +83,7 @@ class InAppWebViewOptions implements WebViewOptions, BrowserOptions, AndroidOpti
///
///**NOTE**: available on iOS 11.0+.
List<ContentBlocker>contentBlockers;
///Sets the content mode that the WebView needs to use. The default value is [InAppWebViewUserPreferredContentMode.RECOMMENDED].
///Sets the content mode that the WebView needs to use when loading and rendering a webpage. The default value is [InAppWebViewUserPreferredContentMode.RECOMMENDED].