WebViewFeature


class WebViewFeature


Utility class for checking which WebView Support Library features are supported on the device.

Summary

Constants

const String!
ALGORITHMIC_DARKENING = "ALGORITHMIC_DARKENING"

Feature for isFeatureSupported.

const String!
ATTRIBUTION_REGISTRATION_BEHAVIOR = "ATTRIBUTION_REGISTRATION_BEHAVIOR"

Feature for isFeatureSupported.

const String!
BACK_FORWARD_CACHE = "BACK_FORWARD_CACHE"

Feature for isFeatureSupported.

const String!
CREATE_WEB_MESSAGE_CHANNEL = "CREATE_WEB_MESSAGE_CHANNEL"

Feature for isFeatureSupported.

const String!
DISABLED_ACTION_MODE_MENU_ITEMS = "DISABLED_ACTION_MODE_MENU_ITEMS"

Feature for isFeatureSupported.

const String!
DOCUMENT_START_SCRIPT = "DOCUMENT_START_SCRIPT"

Feature for isFeatureSupported.

const String!
ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY = "ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY"

Feature for isFeatureSupported.

const String!
FORCE_DARK = "FORCE_DARK"

Feature for isFeatureSupported.

const String!
FORCE_DARK_STRATEGY = "FORCE_DARK_STRATEGY"

Feature for isFeatureSupported.

const String!
GET_COOKIE_INFO = "GET_COOKIE_INFO"

Feature for isFeatureSupported.

const String!
GET_VARIATIONS_HEADER = "GET_VARIATIONS_HEADER"

Feature for isFeatureSupported.

const String!
GET_WEB_CHROME_CLIENT = "GET_WEB_CHROME_CLIENT"

Feature for isFeatureSupported.

const String!
GET_WEB_VIEW_CLIENT = "GET_WEB_VIEW_CLIENT"

Feature for isFeatureSupported.

const String!
GET_WEB_VIEW_RENDERER = "GET_WEB_VIEW_RENDERER"

Feature for isFeatureSupported.

const String!
MULTI_PROCESS = "MULTI_PROCESS"

Feature for isFeatureSupported.

const String!
MULTI_PROFILE = "MULTI_PROFILE"

Feature for isFeatureSupported.

const String!
MUTE_AUDIO = "MUTE_AUDIO"

Feature for isFeatureSupported.

const String!
OFF_SCREEN_PRERASTER = "OFF_SCREEN_PRERASTER"

Feature for isFeatureSupported.

const String!
POST_WEB_MESSAGE = "POST_WEB_MESSAGE"

Feature for isFeatureSupported.

const String!

Feature for isFeatureSupported.

const String!
PROXY_OVERRIDE = "PROXY_OVERRIDE"

Feature for isFeatureSupported.

const String!
PROXY_OVERRIDE_REVERSE_BYPASS = "PROXY_OVERRIDE_REVERSE_BYPASS"

Feature for isFeatureSupported.

const String!
RECEIVE_HTTP_ERROR = "RECEIVE_HTTP_ERROR"

Feature for isFeatureSupported.

const String!
RECEIVE_WEB_RESOURCE_ERROR = "RECEIVE_WEB_RESOURCE_ERROR"

Feature for isFeatureSupported.

const String!
SAFE_BROWSING_ALLOWLIST = "SAFE_BROWSING_ALLOWLIST"

Feature for isFeatureSupported.

const String!
SAFE_BROWSING_ENABLE = "SAFE_BROWSING_ENABLE"

Feature for isFeatureSupported.

const String!
SAFE_BROWSING_HIT = "SAFE_BROWSING_HIT"

Feature for isFeatureSupported.

const String!
SAFE_BROWSING_PRIVACY_POLICY_URL = "SAFE_BROWSING_PRIVACY_POLICY_URL"

Feature for isFeatureSupported.

const String!
SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY = "SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY"

Feature for isFeatureSupported.

const String!
SAFE_BROWSING_RESPONSE_PROCEED = "SAFE_BROWSING_RESPONSE_PROCEED"

Feature for isFeatureSupported.

const String!
SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL = "SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL"

Feature for isFeatureSupported.

const String!
SAFE_BROWSING_WHITELIST = "SAFE_BROWSING_WHITELIST"

This property is deprecated.

Please use SAFE_BROWSING_ALLOWLIST and setSafeBrowsingAllowlist instead.

const String!
SERVICE_WORKER_BASIC_USAGE = "SERVICE_WORKER_BASIC_USAGE"

Feature for isFeatureSupported.

const String!
SERVICE_WORKER_BLOCK_NETWORK_LOADS = "SERVICE_WORKER_BLOCK_NETWORK_LOADS"

Feature for isFeatureSupported.

const String!
SERVICE_WORKER_CACHE_MODE = "SERVICE_WORKER_CACHE_MODE"

Feature for isFeatureSupported.

const String!
SERVICE_WORKER_CONTENT_ACCESS = "SERVICE_WORKER_CONTENT_ACCESS"

Feature for isFeatureSupported.

const String!
SERVICE_WORKER_FILE_ACCESS = "SERVICE_WORKER_FILE_ACCESS"

Feature for isFeatureSupported.

const String!
SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST = "SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST"

Feature for isFeatureSupported.

const String!
SHOULD_OVERRIDE_WITH_REDIRECTS = "SHOULD_OVERRIDE_WITH_REDIRECTS"

Feature for isFeatureSupported.

const String!
SPECULATIVE_LOADING = "SPECULATIVE_LOADING_STATUS"

Feature for isFeatureSupported.

const String!
STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX = "STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX"

Feature for isStartupFeatureSupported.

const String!
STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS = "STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS"

Feature for isStartupFeatureSupported.

const String!
START_SAFE_BROWSING = "START_SAFE_BROWSING"

Feature for isFeatureSupported.

const String!
TRACING_CONTROLLER_BASIC_USAGE = "TRACING_CONTROLLER_BASIC_USAGE"

Feature for isFeatureSupported.

const String!
USER_AGENT_METADATA = "USER_AGENT_METADATA"

Feature for isFeatureSupported.

const String!
VISUAL_STATE_CALLBACK = "VISUAL_STATE_CALLBACK"

Feature for isFeatureSupported.

const String!
WEBVIEW_MEDIA_INTEGRITY_API_STATUS = "WEBVIEW_MEDIA_INTEGRITY_API_STATUS"

Feature for isFeatureSupported.

const String!
WEB_AUTHENTICATION = "WEB_AUTHENTICATION"

Feature for isFeatureSupported This feature covers setWebAuthenticationSupportgetWebAuthenticationSupport

const String!
WEB_MESSAGE_ARRAY_BUFFER = "WEB_MESSAGE_ARRAY_BUFFER"

Feature for isFeatureSupported.

const String!
WEB_MESSAGE_CALLBACK_ON_MESSAGE = "WEB_MESSAGE_CALLBACK_ON_MESSAGE"

Feature for isFeatureSupported.

const String!
WEB_MESSAGE_LISTENER = "WEB_MESSAGE_LISTENER"

Feature for isFeatureSupported.

const String!
WEB_MESSAGE_PORT_CLOSE = "WEB_MESSAGE_PORT_CLOSE"

Feature for isFeatureSupported.

const String!
WEB_MESSAGE_PORT_POST_MESSAGE = "WEB_MESSAGE_PORT_POST_MESSAGE"

Feature for isFeatureSupported.

const String!
WEB_MESSAGE_PORT_SET_MESSAGE_CALLBACK = "WEB_MESSAGE_PORT_SET_MESSAGE_CALLBACK"

Feature for isFeatureSupported.

const String!
WEB_RESOURCE_ERROR_GET_CODE = "WEB_RESOURCE_ERROR_GET_CODE"

Feature for isFeatureSupported.

const String!
WEB_RESOURCE_ERROR_GET_DESCRIPTION = "WEB_RESOURCE_ERROR_GET_DESCRIPTION"

Feature for isFeatureSupported.

const String!
WEB_RESOURCE_REQUEST_IS_REDIRECT = "WEB_RESOURCE_REQUEST_IS_REDIRECT"

Feature for isFeatureSupported.

const String!
WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE = "WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE"

i* Feature for isFeatureSupported.

const String!
WEB_VIEW_RENDERER_TERMINATE = "WEB_VIEW_RENDERER_TERMINATE"

Feature for isFeatureSupported.

Public functions

java-static Boolean

Return whether a feature is supported at run-time.

java-static Boolean
isStartupFeatureSupported(context: Context, startupFeature: String)

Return whether a startup feature is supported at run-time.

Constants

ALGORITHMIC_DARKENING

Added in 1.5.0
const val ALGORITHMIC_DARKENING = "ALGORITHMIC_DARKENING": String!

Feature for isFeatureSupported. This feature covers setAlgorithmicDarkeningAllowed and isAlgorithmicDarkeningAllowed.

ATTRIBUTION_REGISTRATION_BEHAVIOR

Added in 1.9.0
const val ATTRIBUTION_REGISTRATION_BEHAVIOR = "ATTRIBUTION_REGISTRATION_BEHAVIOR": String!

Feature for isFeatureSupported. This feature covers setAttributionRegistrationBehaviorgetAttributionRegistrationBehavior

BACK_FORWARD_CACHE

Added in 1.12.0
const val BACK_FORWARD_CACHE = "BACK_FORWARD_CACHE": String!

Feature for isFeatureSupported. This feature covers setBackForwardCacheEnabledgetBackForwardCacheEnabled

CREATE_WEB_MESSAGE_CHANNEL

Added in 1.1.0
const val CREATE_WEB_MESSAGE_CHANNEL = "CREATE_WEB_MESSAGE_CHANNEL": String!

Feature for isFeatureSupported. This feature covers createWebMessageChannel.

DISABLED_ACTION_MODE_MENU_ITEMS

Added in 1.1.0
const val DISABLED_ACTION_MODE_MENU_ITEMS = "DISABLED_ACTION_MODE_MENU_ITEMS": String!

Feature for isFeatureSupported. This feature covers getDisabledActionModeMenuItems, and setDisabledActionModeMenuItems.

DOCUMENT_START_SCRIPT

Added in 1.9.0
const val DOCUMENT_START_SCRIPT = "DOCUMENT_START_SCRIPT": String!

Feature for isFeatureSupported. This feature covers addDocumentStartJavaScript.

Added in 1.6.0
const val ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY = "ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY": String!

Feature for isFeatureSupported. This feature covers setEnterpriseAuthenticationAppLinkPolicyEnabledand getEnterpriseAuthenticationAppLinkPolicyEnabled.

FORCE_DARK

Added in 1.2.0
const val FORCE_DARK = "FORCE_DARK": String!

Feature for isFeatureSupported. This feature covers setForceDark and getForceDark.

FORCE_DARK_STRATEGY

Added in 1.3.0
const val FORCE_DARK_STRATEGY = "FORCE_DARK_STRATEGY": String!

Feature for isFeatureSupported. This feature covers setForceDarkStrategy and getForceDarkStrategy.

Added in 1.6.0
const val GET_COOKIE_INFO = "GET_COOKIE_INFO": String!

Feature for isFeatureSupported. This feature covers getCookieInfo.

GET_VARIATIONS_HEADER

Added in 1.5.0
const val GET_VARIATIONS_HEADER = "GET_VARIATIONS_HEADER": String!

Feature for isFeatureSupported. This feature covers getVariationsHeader.

GET_WEB_CHROME_CLIENT

Added in 1.1.0
const val GET_WEB_CHROME_CLIENT = "GET_WEB_CHROME_CLIENT": String!

Feature for isFeatureSupported. This feature covers getWebChromeClient

GET_WEB_VIEW_CLIENT

Added in 1.1.0
const val GET_WEB_VIEW_CLIENT = "GET_WEB_VIEW_CLIENT": String!

Feature for isFeatureSupported. This feature covers getWebViewClient

GET_WEB_VIEW_RENDERER

Added in 1.1.0
const val GET_WEB_VIEW_RENDERER = "GET_WEB_VIEW_RENDERER": String!

Feature for isFeatureSupported. This feature covers getWebViewRenderProcess

MULTI_PROCESS

Added in 1.3.0
const val MULTI_PROCESS = "MULTI_PROCESS": String!

Feature for isFeatureSupported. This feature covers isMultiProcessEnabled

MUTE_AUDIO

Added in 1.11.0
const val MUTE_AUDIO = "MUTE_AUDIO": String!

Feature for isFeatureSupported. This feature covers isAudioMutedsetAudioMuted

OFF_SCREEN_PRERASTER

Added in 1.1.0
const val OFF_SCREEN_PRERASTER = "OFF_SCREEN_PRERASTER": String!

Feature for isFeatureSupported. This feature covers getOffscreenPreRaster, and setOffscreenPreRaster.

POST_WEB_MESSAGE

Added in 1.1.0
const val POST_WEB_MESSAGE = "POST_WEB_MESSAGE": String!

Feature for isFeatureSupported. This feature covers postWebMessage.

PROFILE_URL_PREFETCH

@Profile.ExperimentalUrlPrefetch
const val PROFILE_URL_PREFETCH = "PROFILE_URL_PREFETCH": String!

Feature for isFeatureSupported. This feature covers prefetchUrlAsyncclearPrefetchAsync

PROXY_OVERRIDE

Added in 1.1.0
const val PROXY_OVERRIDE = "PROXY_OVERRIDE": String!

Feature for isFeatureSupported. This feature covers setProxyOverride, clearProxyOverride, and

PROXY_OVERRIDE_REVERSE_BYPASS

Added in 1.5.0
const val PROXY_OVERRIDE_REVERSE_BYPASS = "PROXY_OVERRIDE_REVERSE_BYPASS": String!

Feature for isFeatureSupported. This feature covers setReverseBypassEnabled

RECEIVE_HTTP_ERROR

Added in 1.1.0
const val RECEIVE_HTTP_ERROR = "RECEIVE_HTTP_ERROR": String!

Feature for isFeatureSupported. This feature covers onReceivedHttpError.

RECEIVE_WEB_RESOURCE_ERROR

Added in 1.1.0
const val RECEIVE_WEB_RESOURCE_ERROR = "RECEIVE_WEB_RESOURCE_ERROR": String!

Feature for isFeatureSupported. This feature covers onReceivedError.

SAFE_BROWSING_ALLOWLIST

Added in 1.4.0
const val SAFE_BROWSING_ALLOWLIST = "SAFE_BROWSING_ALLOWLIST": String!

Feature for isFeatureSupported. This feature covers setSafeBrowsingAllowlist.

SAFE_BROWSING_ENABLE

Added in 1.1.0
const val SAFE_BROWSING_ENABLE = "SAFE_BROWSING_ENABLE": String!

Feature for isFeatureSupported. This feature covers getSafeBrowsingEnabled, and setSafeBrowsingEnabled.

SAFE_BROWSING_HIT

Added in 1.1.0
const val SAFE_BROWSING_HIT = "SAFE_BROWSING_HIT": String!

Feature for isFeatureSupported. This feature covers onSafeBrowsingHit.

SAFE_BROWSING_PRIVACY_POLICY_URL

Added in 1.1.0
const val SAFE_BROWSING_PRIVACY_POLICY_URL = "SAFE_BROWSING_PRIVACY_POLICY_URL": String!

Feature for isFeatureSupported. This feature covers getSafeBrowsingPrivacyPolicyUrl.

SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY

Added in 1.1.0
const val SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY = "SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY": String!

Feature for isFeatureSupported. This feature covers backToSafety.

SAFE_BROWSING_RESPONSE_PROCEED

Added in 1.1.0
const val SAFE_BROWSING_RESPONSE_PROCEED = "SAFE_BROWSING_RESPONSE_PROCEED": String!

Feature for isFeatureSupported. This feature covers proceed.

SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL

Added in 1.1.0
const val SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL = "SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL": String!

Feature for isFeatureSupported. This feature covers showInterstitial.

SAFE_BROWSING_WHITELIST

Added in 1.1.0
Deprecated in 1.4.0
const val SAFE_BROWSING_WHITELIST = "SAFE_BROWSING_WHITELIST": String!

Feature for isFeatureSupported. This feature covers setSafeBrowsingWhitelist.

This is functionally equivalent to SAFE_BROWSING_ALLOWLIST: both constants represent the same range of compatibility across Android OS versions and WebView versions.

SERVICE_WORKER_BASIC_USAGE

Added in 1.1.0
const val SERVICE_WORKER_BASIC_USAGE = "SERVICE_WORKER_BASIC_USAGE": String!

Feature for isFeatureSupported. This feature covers getInstance.

SERVICE_WORKER_BLOCK_NETWORK_LOADS

Added in 1.1.0
const val SERVICE_WORKER_BLOCK_NETWORK_LOADS = "SERVICE_WORKER_BLOCK_NETWORK_LOADS": String!

Feature for isFeatureSupported. This feature covers getBlockNetworkLoads, and setBlockNetworkLoads.

SERVICE_WORKER_CACHE_MODE

Added in 1.1.0
const val SERVICE_WORKER_CACHE_MODE = "SERVICE_WORKER_CACHE_MODE": String!

Feature for isFeatureSupported. This feature covers getCacheMode, and setCacheMode.

SERVICE_WORKER_CONTENT_ACCESS

Added in 1.1.0
const val SERVICE_WORKER_CONTENT_ACCESS = "SERVICE_WORKER_CONTENT_ACCESS": String!

Feature for isFeatureSupported. This feature covers getAllowContentAccess, and setAllowContentAccess.

SERVICE_WORKER_FILE_ACCESS

Added in 1.1.0
const val SERVICE_WORKER_FILE_ACCESS = "SERVICE_WORKER_FILE_ACCESS": String!

Feature for isFeatureSupported. This feature covers getAllowFileAccess, and setAllowFileAccess.

SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST

Added in 1.1.0
const val SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST = "SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST": String!

Feature for isFeatureSupported. This feature covers shouldInterceptRequest.

SHOULD_OVERRIDE_WITH_REDIRECTS

Added in 1.1.0
const val SHOULD_OVERRIDE_WITH_REDIRECTS = "SHOULD_OVERRIDE_WITH_REDIRECTS": String!

Feature for isFeatureSupported. This feature covers shouldOverrideUrlLoading.

SPECULATIVE_LOADING

Added in 1.12.0
const val SPECULATIVE_LOADING = "SPECULATIVE_LOADING_STATUS": String!

Feature for isFeatureSupported. This feature covers setSpeculativeLoadingStatusgetSpeculativeLoadingStatus}

STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX

Added in 1.6.0
const val STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX = "STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX": String!

Feature for isStartupFeatureSupported. This feature covers setDataDirectorySuffix.

STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS

Added in 1.7.0
const val STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS = "STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS": String!

Feature for isStartupFeatureSupported. This feature covers setDirectoryBasePaths

START_SAFE_BROWSING

Added in 1.1.0
const val START_SAFE_BROWSING = "START_SAFE_BROWSING": String!

Feature for isFeatureSupported. This feature covers startSafeBrowsing.

TRACING_CONTROLLER_BASIC_USAGE

Added in 1.1.0
const val TRACING_CONTROLLER_BASIC_USAGE = "TRACING_CONTROLLER_BASIC_USAGE": String!

Feature for isFeatureSupported. This feature covers getInstance, isTracing, start, stop.

USER_AGENT_METADATA

Added in 1.9.0
const val USER_AGENT_METADATA = "USER_AGENT_METADATA": String!

Feature for isFeatureSupported. This feature covers getUserAgentMetadata, and setUserAgentMetadata.

VISUAL_STATE_CALLBACK

Added in 1.1.0
const val VISUAL_STATE_CALLBACK = "VISUAL_STATE_CALLBACK": String!

Feature for isFeatureSupported. This feature covers postVisualStateCallback, and onPageCommitVisible.

WEBVIEW_MEDIA_INTEGRITY_API_STATUS

Added in 1.10.0
const val WEBVIEW_MEDIA_INTEGRITY_API_STATUS = "WEBVIEW_MEDIA_INTEGRITY_API_STATUS": String!

Feature for isFeatureSupported. This feature covers setWebViewMediaIntegrityApiStatusgetWebViewMediaIntegrityApiStatus

WEB_AUTHENTICATION

Added in 1.12.0
const val WEB_AUTHENTICATION = "WEB_AUTHENTICATION": String!

Feature for isFeatureSupported This feature covers setWebAuthenticationSupportgetWebAuthenticationSupport

WEB_MESSAGE_ARRAY_BUFFER

Added in 1.8.0
const val WEB_MESSAGE_ARRAY_BUFFER = "WEB_MESSAGE_ARRAY_BUFFER": String!

Feature for isFeatureSupported. This feature covers postMessage with ArrayBuffer type, postWebMessage with ArrayBuffer type, and postMessage.

WEB_MESSAGE_CALLBACK_ON_MESSAGE

Added in 1.1.0
const val WEB_MESSAGE_CALLBACK_ON_MESSAGE = "WEB_MESSAGE_CALLBACK_ON_MESSAGE": String!

Feature for isFeatureSupported. This feature covers onMessage.

WEB_MESSAGE_LISTENER

Added in 1.3.0
const val WEB_MESSAGE_LISTENER = "WEB_MESSAGE_LISTENER": String!

Feature for isFeatureSupported. This feature covers addWebMessageListener and removeWebMessageListener.

WEB_MESSAGE_PORT_CLOSE

Added in 1.1.0
const val WEB_MESSAGE_PORT_CLOSE = "WEB_MESSAGE_PORT_CLOSE": String!

Feature for isFeatureSupported. This feature covers close.

WEB_MESSAGE_PORT_POST_MESSAGE

Added in 1.1.0
const val WEB_MESSAGE_PORT_POST_MESSAGE = "WEB_MESSAGE_PORT_POST_MESSAGE": String!

Feature for isFeatureSupported. This feature covers postMessage.

WEB_MESSAGE_PORT_SET_MESSAGE_CALLBACK

Added in 1.1.0
const val WEB_MESSAGE_PORT_SET_MESSAGE_CALLBACK = "WEB_MESSAGE_PORT_SET_MESSAGE_CALLBACK": String!

Feature for isFeatureSupported. This feature covers setWebMessageCallback, and setWebMessageCallback.

WEB_RESOURCE_ERROR_GET_CODE

Added in 1.1.0
const val WEB_RESOURCE_ERROR_GET_CODE = "WEB_RESOURCE_ERROR_GET_CODE": String!

Feature for isFeatureSupported. This feature covers getErrorCode.

WEB_RESOURCE_ERROR_GET_DESCRIPTION

Added in 1.1.0
const val WEB_RESOURCE_ERROR_GET_DESCRIPTION = "WEB_RESOURCE_ERROR_GET_DESCRIPTION": String!

Feature for isFeatureSupported. This feature covers getDescription.

WEB_RESOURCE_REQUEST_IS_REDIRECT

Added in 1.1.0
const val WEB_RESOURCE_REQUEST_IS_REDIRECT = "WEB_RESOURCE_REQUEST_IS_REDIRECT": String!

Feature for isFeatureSupported. This feature covers isRedirect.

WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE

Added in 1.1.0
const val WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE = "WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE": String!

i* Feature for isFeatureSupported. This feature covers getWebViewRenderProcessClient, setWebViewRenderProcessClient,

WEB_VIEW_RENDERER_TERMINATE

Added in 1.1.0
const val WEB_VIEW_RENDERER_TERMINATE = "WEB_VIEW_RENDERER_TERMINATE": String!

Feature for isFeatureSupported. This feature covers terminate

Public functions

isFeatureSupported

Added in 1.1.0
java-static fun isFeatureSupported(feature: String): Boolean

Return whether a feature is supported at run-time. 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.

Note: This method is different from isStartupFeatureSupported and this method only accepts certain features. Please verify that the correct feature checking method is used for a particular feature.

Note: If this method returns false, it is not safe to invoke the methods requiring the desired feature. Furthermore, if this method returns false for a particular feature, any callback guarded by that feature will not be invoked.

Parameters
feature: String

the feature to be checked

Returns
Boolean

whether the feature is supported given the current platform SDK and WebView version

isStartupFeatureSupported

Added in 1.6.0
java-static fun isStartupFeatureSupported(context: Context, startupFeature: String): Boolean

Return whether a startup feature is supported at run-time. 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.

Note: This method is different from isFeatureSupported and this method only accepts startup features. Please verify that the correct feature checking method is used for a particular feature.

Note: If this method returns false, it is not safe to invoke the methods requiring the desired feature. Furthermore, if this method returns false for a particular feature, any callback guarded by that feature will not be invoked.

Parameters
context: Context

a Context to access application assets This value cannot be null.

startupFeature: String

the startup feature to be checked

Returns
Boolean

whether the feature is supported given the current platform SDK and WebView version