///Class that implements a singleton object (shared instance) which manages the shared HTTP auth credentials cache.
///On iOS, this class uses the [URLCredentialStorage](https://developer.apple.com/documentation/foundation/urlcredentialstorage) class.
///On Android, this class has a custom implementation using `android.database.sqlite.SQLiteDatabase` because [WebViewDatabase](https://developer.android.com/reference/android/webkit/WebViewDatabase)
///On Android, this class has a custom implementation using `android.database.sqlite.SQLiteDatabase` because
///List of forbidden names for JavaScript handlers.
constjavaScriptHandlerForbiddenNames=[
"onLoadResource",
"shouldInterceptAjaxRequest",
"onAjaxReadyStateChange",
"onAjaxProgress",
"shouldInterceptFetchRequest",
"onPrint",
"androidKeyboardWorkaroundFocusoutEvent"
];
///Controls a WebView, such as an [InAppWebView] widget instance, a [HeadlessInAppWebView] instance or [InAppBrowser] WebView instance.
///
...
...
@@ -746,19 +759,28 @@ class InAppWebViewController {
}
///Gets the URL for the current page.
///This is not always the same as the URL passed to [InAppWebView.onLoadStarted] because although the load for that URL has begun, the current page may not have changed.
///This is not always the same as the URL passed to [WebView.onLoadStart] because although the load for that URL has begun, the current page may not have changed.
@@ -953,6 +980,11 @@ class InAppWebViewController {
///The [encoding] parameter specifies the encoding of the data. The default value is `"utf8"`.
///
///The [androidHistoryUrl] parameter is the URL to use as the history entry. The default value is `about:blank`. If non-null, this must be a valid URL. This parameter is used only on Android.
@@ -1048,6 +1098,8 @@ class InAppWebViewController {
}
///Returns a boolean value indicating whether the WebView can go back or forward the given number of steps. Steps is negative if backward and positive if forward.
@@ -1357,6 +1442,9 @@ class InAppWebViewController {
///[zoomFactor] represents the zoom factor to apply. On Android, the zoom factor will be clamped to the Webview's zoom limits and, also, this value must be in the range 0.01 to 100.0 inclusive.
@@ -1429,12 +1530,16 @@ class AndroidInAppWebViewController {
///Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation. Note that this call does not pause JavaScript.
///To pause JavaScript globally, use [pauseTimers()]. To resume WebView, call [resume()].
///This class contains a snapshot of the current back/forward list for a WebView.
///This class contains a snapshot of the current back/forward list for a [WebView].
classWebHistory{
///List of all [WebHistoryItem]s.
List<WebHistoryItem>list;
...
...
@@ -253,7 +260,7 @@ class WebHistory {
WebHistory({this.list,this.currentIndex});
}
///A convenience class for accessing fields in an entry in the back/forward list of a WebView. Each WebHistoryItem is a snapshot of the requested history item.
///A convenience class for accessing fields in an entry in the back/forward list of a WebView. Each [WebHistoryItem] is a snapshot of the requested history item.
///Class used by the host application to set the Geolocation permission state for an origin during the [androidOnGeolocationPermissionsShowPrompt] event.
///Class used by the host application to set the Geolocation permission state for an origin during the [WebView.androidOnGeolocationPermissionsShowPrompt] event.
classGeolocationPermissionShowPromptResponse{
///The origin for which permissions are set.
Stringorigin;
...
...
@@ -309,7 +316,7 @@ class JsAlertResponseAction {
intgethashCode=>_value.hashCode;
}
///Class that represents the response used by the [onJsAlert] event to control a JavaScript alert dialog.
///Class that represents the response used by the [WebView.onJsAlert] event to control a JavaScript alert dialog.
classJsAlertResponse{
///Message to be displayed in the window.
Stringmessage;
...
...
@@ -356,7 +363,7 @@ class JsConfirmResponseAction {
intgethashCode=>_value.hashCode;
}
///Class that represents the response used by the [onJsConfirm] event to control a JavaScript confirm dialog.
///Class that represents the response used by the [WebView.onJsConfirm] event to control a JavaScript confirm dialog.
classJsConfirmResponse{
///Message to be displayed in the window.
Stringmessage;
...
...
@@ -408,7 +415,7 @@ class JsPromptResponseAction {
intgethashCode=>_value.hashCode;
}
///Class that represents the response used by the [onJsPrompt] event to control a JavaScript prompt dialog.
///Class that represents the response used by the [WebView.onJsPrompt] event to control a JavaScript prompt dialog.
classJsPromptResponse{
///Message to be displayed in the window.
Stringmessage;
...
...
@@ -524,10 +531,10 @@ class SafeBrowsingResponseAction {
intgethashCode=>_value.hashCode;
}
///Class that represents the response used by the [androidOnSafeBrowsingHit] event.
///Class that represents the response used by the [WebView.androidOnSafeBrowsingHit] 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.androidGetSafeBrowsingPrivacyPolicyUrl].
///If reporting is enabled, all reports will be sent according to the privacy policy referenced by [AndroidInAppWebViewController.getSafeBrowsingPrivacyPolicyUrl].
boolreport;
///Indicate the [SafeBrowsingResponseAction] to take when hitting a malicious URL.
...
...
@@ -566,7 +573,7 @@ class HttpAuthResponseAction {
intgethashCode=>_value.hashCode;
}
///Class that represents the response used by the [onReceivedHttpAuthRequest] event.
///Class that represents the response used by the [WebView.onReceivedHttpAuthRequest] event.
classHttpAuthResponse{
///Represents the username used for the authentication if the [action] corresponds to [HttpAuthResponseAction.PROCEED]
Stringusername;
...
...
@@ -596,7 +603,7 @@ class HttpAuthResponse {
}
}
///Class that represents the challenge of the [onReceivedHttpAuthRequest] event.
///Class that represents the challenge of the [WebView.onReceivedHttpAuthRequest] event.
///It provides all the information about the challenge.
classHttpAuthChallenge{
///A count of previous failed authentication attempts.
...
...
@@ -664,7 +671,7 @@ class ServerTrustAuthResponseAction {
intgethashCode=>_value.hashCode;
}
///ServerTrustAuthResponse class represents the response used by the [onReceivedServerTrustAuthRequest] event.
///ServerTrustAuthResponse class represents the response used by the [WebView.onReceivedServerTrustAuthRequest] event.
classServerTrustAuthResponse{
///Indicate the [ServerTrustAuthResponseAction] to take in response of the server trust authentication challenge.
ServerTrustAuthResponseActionaction;
...
...
@@ -676,7 +683,7 @@ class ServerTrustAuthResponse {
}
}
///Class that represents the challenge of the [onReceivedServerTrustAuthRequest] event.
///Class that represents the challenge of the [WebView.onReceivedServerTrustAuthRequest] event.
///It provides all the information about the challenge.
classServerTrustChallenge{
///The protection space requiring authentication.
...
...
@@ -726,7 +733,7 @@ class ClientCertResponseAction {
intgethashCode=>_value.hashCode;
}
///Class that represents the response used by the [onReceivedClientCertRequest] event.
///Class that represents the response used by the [WebView.onReceivedClientCertRequest] event.
classClientCertResponse{
///The file path of the certificate to use.
StringcertificatePath;
...
...
@@ -759,7 +766,7 @@ class ClientCertResponse {
}
}
///Class that represents the challenge of the [onReceivedClientCertRequest] event.
///Class that represents the challenge of the [WebView.onReceivedClientCertRequest] event.
///It provides all the information about the challenge.
classClientCertChallenge{
///The protection space requiring authentication.
...
...
@@ -1058,7 +1065,7 @@ class IOSWKSelectionGranularity {
intgethashCode=>_value.hashCode;
}
///Class that represents an iOS-specific class used to specify a dataDetectoryTypes value that adds interactivity to web content that matches the value.
///Class that represents an iOS-specific class used to specify a `dataDetectoryTypes` value that adds interactivity to web content that matches the value.
///
///**NOTE**: available on iOS 10.0+.
classIOSWKDataDetectorTypes{
...
...
@@ -2126,7 +2133,7 @@ class PermissionRequestResponseAction {
intgethashCode=>_value.hashCode;
}
///Class that represents the response used by the [androidOnPermissionRequest] event.
///Class that represents the response used by the [WebView.androidOnPermissionRequest] event.
classPermissionRequestResponse{
///Resources granted to be accessed by origin.
List<String>resources;
...
...
@@ -2143,7 +2150,7 @@ class PermissionRequestResponse {
}
}
///Class that is used by [shouldOverrideUrlLoading] event.
///Class that is used by [WebView.shouldOverrideUrlLoading] event.
///It represents the policy to pass back to the decision handler.
classShouldOverrideUrlLoadingAction{
finalint_value;
...
...
@@ -2170,7 +2177,7 @@ class ShouldOverrideUrlLoadingAction {
}
}
///Class that represents the type of action triggering a navigation on iOS for the [shouldOverrideUrlLoading] event.
///Class that represents the type of action triggering a navigation on iOS for the [WebView.shouldOverrideUrlLoading] event.
classIOSWKNavigationType{
finalint_value;
...
...
@@ -2208,7 +2215,7 @@ class IOSWKNavigationType {
intgethashCode=>_value.hashCode;
}
///Class that represents the navigation request used by the [shouldOverrideUrlLoading] event.
///Class that represents the navigation request used by the [WebView.shouldOverrideUrlLoading] event.
classShouldOverrideUrlLoadingRequest{
///Represents the url of the navigation request.
Stringurl;
...
...
@@ -2246,7 +2253,7 @@ class ShouldOverrideUrlLoadingRequest {
this.iosWKNavigationType});
}
///Class that represents the navigation request used by the [shouldOverrideUrlLoading] event.
///Class that represents the navigation request used by the [WebView.onCreateWindow] event.
classOnCreateWindowRequest{
///Represents the url of the navigation request.
Stringurl;
...
...
@@ -2680,8 +2687,9 @@ class AndroidOverScrollMode {
///The scrollbars can be overlaid or inset.
///When inset, they add to the padding of the view. And the scrollbars can be drawn inside the padding area or on the edge of the view.
///For example, if a view has a background drawable and you want to draw the scrollbars inside the padding specified by the drawable,
///you can use SCROLLBARS_INSIDE_OVERLAY or SCROLLBARS_INSIDE_INSET. If you want them to appear at the edge of the view, ignoring the padding,
///then you can use SCROLLBARS_OUTSIDE_OVERLAY or SCROLLBARS_OUTSIDE_INSET.
///you can use [AndroidScrollBarStyle.SCROLLBARS_INSIDE_OVERLAY] or [AndroidScrollBarStyle.SCROLLBARS_INSIDE_INSET].
///If you want them to appear at the edge of the view, ignoring the padding,
///then you can use [AndroidScrollBarStyle.SCROLLBARS_OUTSIDE_OVERLAY] or [AndroidScrollBarStyle.SCROLLBARS_OUTSIDE_INSET].
classAndroidScrollBarStyle{
finalint_value;
...
...
@@ -2783,9 +2791,9 @@ class AndroidVerticalScrollbarPosition {
///Class that represents an Android WebView package info.