WebViewFeature class
Class that represents an Android-specific utility class for checking which WebView Support Library features are supported on the device.
Officially Supported Platforms/Implementations:
- Android native WebView
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toNativeValue(
) → String - Gets String native value.
-
toString(
) → String -
A string representation of this object.
override
-
toValue(
) → String - Gets String value.
Operators
-
operator ==(
Object value) → bool -
The equality operator.
override
Static Properties
-
values
→ Set<
WebViewFeature> -
Set of all values of WebViewFeature.
final
Static Methods
-
fromNativeValue(
String? value) → WebViewFeature? - Gets a possible WebViewFeature instance from a native value.
-
fromValue(
String? value) → WebViewFeature? - Gets a possible WebViewFeature instance from String value.
-
isFeatureSupported(
WebViewFeature feature) → Future< bool> -
Return whether a feature is supported at run-time. On devices running Android version
Build.VERSION_CODES.LOLLIPOP
and higher, this will check whether a feature is supported, depending on the combination of the desired feature, the Android version of device, and the WebView APK on the device. If running on a device with a lower API level, this will always returnfalse
. -
isStartupFeatureSupported(
WebViewFeature startupFeature) → Future< bool> -
Return whether a startup feature is supported at run-time.
On devices running Android version
Build.VERSION_CODES.LOLLIPOP
and higher, this will check whether a startup feature is supported, depending on the combination of the desired feature, the Android version of device, and the WebView APK on the device. If running on a device with a lower API level, this will always returnfalse
.
Constants
- ALGORITHMIC_DARKENING → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewSettings.algorithmicDarkeningAllowed.
- CREATE_WEB_MESSAGE_CHANNEL → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewController.createWebMessageChannel.
- DISABLED_ACTION_MODE_MENU_ITEMS → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewSettings.disabledActionModeMenuItems.
- DOCUMENT_START_SCRIPT → const WebViewFeature
- Feature for isFeatureSupported. This feature covers UserScriptInjectionTime.AT_DOCUMENT_START.
- ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewSettings.enterpriseAuthenticationAppLinkPolicyEnabled.
- FORCE_DARK → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewSettings.forceDark.
- FORCE_DARK_STRATEGY → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewSettings.forceDarkStrategy.
- GET_COOKIE_INFO → const WebViewFeature
- Feature for isFeatureSupported. This feature covers cookie attributes of CookieManager.getCookie and CookieManager.getCookies methods.
- GET_VARIATIONS_HEADER → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewController.getVariationsHeader.
- GET_WEB_CHROME_CLIENT → const WebViewFeature
- GET_WEB_VIEW_CLIENT → const WebViewFeature
- GET_WEB_VIEW_RENDERER → const WebViewFeature
- MULTI_PROCESS → const WebViewFeature
- OFF_SCREEN_PRERASTER → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewSettings.offscreenPreRaster.
- POST_WEB_MESSAGE → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewController.postWebMessage.
- PROXY_OVERRIDE → const WebViewFeature
- Feature for isFeatureSupported. This feature covers ProxyController.setProxyOverride and ProxyController.clearProxyOverride.
- PROXY_OVERRIDE_REVERSE_BYPASS → const WebViewFeature
- Feature for isFeatureSupported. This feature covers ProxySettings.reverseBypassEnabled.
- RECEIVE_HTTP_ERROR → const WebViewFeature
- RECEIVE_WEB_RESOURCE_ERROR → const WebViewFeature
- REQUESTED_WITH_HEADER_ALLOW_LIST → const WebViewFeature
- Feature for isFeatureSupported. This feature covers cookie attributes of CookieManager.getCookie and CookieManager.getCookies methods.
- SAFE_BROWSING_ALLOWLIST → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewController.setSafeBrowsingAllowlist.
- SAFE_BROWSING_ENABLE → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewSettings.safeBrowsingEnabled.
- SAFE_BROWSING_HIT → const WebViewFeature
- SAFE_BROWSING_PRIVACY_POLICY_URL → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewController.getSafeBrowsingPrivacyPolicyUrl.
- SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY → const WebViewFeature
- SAFE_BROWSING_RESPONSE_PROCEED → const WebViewFeature
- SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL → const WebViewFeature
- SAFE_BROWSING_WHITELIST → const WebViewFeature
- Use SAFE_BROWSING_ALLOWLIST instead.
- SERVICE_WORKER_BASIC_USAGE → const WebViewFeature
- Feature for isFeatureSupported. This feature covers ServiceWorkerController.
- SERVICE_WORKER_BLOCK_NETWORK_LOADS → const WebViewFeature
- Feature for isFeatureSupported. This feature covers ServiceWorkerController.setBlockNetworkLoads and ServiceWorkerController.getBlockNetworkLoads.
- SERVICE_WORKER_CACHE_MODE → const WebViewFeature
- Feature for isFeatureSupported. This feature covers ServiceWorkerController.setCacheMode and ServiceWorkerController.getCacheMode.
- SERVICE_WORKER_CONTENT_ACCESS → const WebViewFeature
- Feature for isFeatureSupported. This feature covers ServiceWorkerController.setAllowContentAccess and ServiceWorkerController.getAllowContentAccess.
- SERVICE_WORKER_FILE_ACCESS → const WebViewFeature
- Feature for isFeatureSupported. This feature covers ServiceWorkerController.setAllowFileAccess and ServiceWorkerController.getAllowFileAccess.
- SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST → const WebViewFeature
- Feature for isFeatureSupported. This feature covers ServiceWorkerClient.shouldInterceptRequest.
- SHOULD_OVERRIDE_WITH_REDIRECTS → const WebViewFeature
- START_SAFE_BROWSING → const WebViewFeature
- Feature for isFeatureSupported. This feature covers InAppWebViewController.startSafeBrowsing.
- STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX → const WebViewFeature
- Feature for isStartupFeatureSupported. This feature covers ProcessGlobalConfigSettings.dataDirectorySuffix.
- STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS → const WebViewFeature
- Feature for isStartupFeatureSupported. This feature covers ProcessGlobalConfigSettings.directoryBasePaths.
- SUPPRESS_ERROR_PAGE → const WebViewFeature
-
Feature for isFeatureSupported. This feature covers
InAppWebViewSettings.willSuppressErrorPage
. - TRACING_CONTROLLER_BASIC_USAGE → const WebViewFeature
- VISUAL_STATE_CALLBACK → const WebViewFeature
- WEB_MESSAGE_ARRAY_BUFFER → const WebViewFeature
-
Feature for isFeatureSupported. This feature covers WebMessagePort.postMessage with
ArrayBuffer
type, InAppWebViewController.postWebMessage withArrayBuffer
type, and JavaScriptReplyProxy.postMessage withArrayBuffer
type. - WEB_MESSAGE_CALLBACK_ON_MESSAGE → const WebViewFeature
- WEB_MESSAGE_LISTENER → const WebViewFeature
- Feature for isFeatureSupported. This feature covers WebMessageListener.
- WEB_MESSAGE_PORT_CLOSE → const WebViewFeature
- WEB_MESSAGE_PORT_POST_MESSAGE → const WebViewFeature
- WEB_MESSAGE_PORT_SET_MESSAGE_CALLBACK → const WebViewFeature
- WEB_RESOURCE_ERROR_GET_CODE → const WebViewFeature
- WEB_RESOURCE_ERROR_GET_DESCRIPTION → const WebViewFeature
- WEB_RESOURCE_REQUEST_IS_REDIRECT → const WebViewFeature
- WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE → const WebViewFeature
- WEB_VIEW_RENDERER_TERMINATE → const WebViewFeature