WebViewFeature
class WebViewFeature
Utility class for checking which WebView Support Library features are supported on the device.
Summary
Constants |
|
|---|---|
const String! |
@Profile.ExperimentalAddQuicHintsFeature for |
const String! |
ALGORITHMIC_DARKENING = "ALGORITHMIC_DARKENING"Feature for |
const String! |
ATTRIBUTION_REGISTRATION_BEHAVIOR = "ATTRIBUTION_REGISTRATION_BEHAVIOR"Feature for |
const String! |
BACK_FORWARD_CACHE = "BACK_FORWARD_CACHE"Feature for |
const String! |
BACK_FORWARD_CACHE_SETTINGS = "BACK_FORWARD_CACHE_SETTINGS"Feature for |
const String! |
BACK_FORWARD_CACHE_SETTINGS_EXPERIMENTAL_V3 = "BACK_FORWARD_CACHE_SETTINGS_EXPERIMENTAL_V3"Feature for |
const String! |
@WebSettingsCompat.ExperimentalBackForwardCacheSettingsFeature for |
const String! |
COOKIE_INTERCEPT = "COOKIE_INTERCEPT"Feature for |
const String! |
CREATE_WEB_MESSAGE_CHANNEL = "CREATE_WEB_MESSAGE_CHANNEL"Feature for |
const String! |
CUSTOM_REQUEST_HEADERS = "CUSTOM_REQUEST_HEADERS"Feature for |
const String! |
DEFAULT_TRAFFICSTATS_TAGGING = "DEFAULT_TRAFFICSTATS_TAGGING"Feature for |
const String! |
DELETE_BROWSING_DATA = "DELETE_BROWSING_DATA"Feature for |
const String! |
DISABLED_ACTION_MODE_MENU_ITEMS = "DISABLED_ACTION_MODE_MENU_ITEMS"Feature for |
const String! |
DOCUMENT_START_SCRIPT = "DOCUMENT_START_SCRIPT"Feature for |
const String! |
DOWNLOAD_FAVICONS_ENABLED = "DOWNLOAD_FAVICONS_ENABLED"Feature for |
const String! |
@Profile.ExperimentalPreconnectFeature for |
const String! |
ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY = "ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY"Feature for |
const String! |
FORCE_DARK = "FORCE_DARK"Feature for |
const String! |
FORCE_DARK_STRATEGY = "FORCE_DARK_STRATEGY"Feature for |
const String! |
GET_COOKIE_INFO = "GET_COOKIE_INFO"Feature for |
const String! |
GET_VARIATIONS_HEADER = "GET_VARIATIONS_HEADER"Feature for |
const String! |
GET_WEB_CHROME_CLIENT = "GET_WEB_CHROME_CLIENT"Feature for |
const String! |
GET_WEB_VIEW_CLIENT = "GET_WEB_VIEW_CLIENT"Feature for |
const String! |
GET_WEB_VIEW_RENDERER = "GET_WEB_VIEW_RENDERER"Feature for |
const String! |
HTTP_CACHE_MANAGER = "HTTP_CACHE_MANAGER"Feature for |
const String! |
HYPERLINK_CONTEXT_MENU_ITEMS = "HYPERLINK_CONTEXT_MENU_ITEMS"This feature covers |
const String! |
JS_INJECTION_IN_FRAME_AND_WORLD = "JS_INJECTION_IN_FRAME_AND_WORLD"Feature for injecting JavaScript into isolated worlds and iFrames. |
const String! |
MULTI_PROCESS = "MULTI_PROCESS"Feature for |
const String! |
MULTI_PROFILE = "MULTI_PROFILE"Feature for |
const String! |
MUTE_AUDIO = "MUTE_AUDIO"Feature for |
const String! |
NAVIGATION_CALLBACK_BASIC = "WEB_VIEW_NAVIGATION_CLIENT_BASIC_USAGE"This property is deprecated. Use |
const String! |
NAVIGATION_GET_WEB_RESOURCE_ERROR = "NAVIGATION_GET_WEB_RESOURCE_ERROR"Feature for |
const String! |
NAVIGATION_LISTENER = "NAVIGATION_LISTENER"Feature for |
const String! |
NAVIGATION_LISTENER_NON_NULL_PAGE_FOR_SAME_DOCUMENT_NAVIGATIONS = "NAVIGATION_LISTENER_NON_NULL_PAGE_FOR_SAME_DOCUMENT_NAVIGATIONS"This property is deprecated. Use |
const String! |
NAVIGATION_LISTENER_ON_COMPLETED_FIRES_FOR_NON_COMMITTED = "NAVIGATION_LISTENER_ON_COMPLETED_FIRES_FOR_NON_COMMITTED"This property is deprecated. Use |
const String! |
NAVIGATION_LISTENER_V1 = "NAVIGATION_LISTENER_V1"This property is deprecated. Use |
const String! |
NAVIGATION_LISTENER_V2 = "NAVIGATION_LISTENER_V2"This property is deprecated. Use |
const String! |
OFF_SCREEN_PRERASTER = "OFF_SCREEN_PRERASTER"Feature for |
const String! |
PAGE_GET_URL = "PAGE_GET_URL"This property is deprecated. Use |
const String! |
PAYMENT_REQUEST = "PAYMENT_REQUEST"Feature for |
const String! |
POST_WEB_MESSAGE = "POST_WEB_MESSAGE"Feature for |
const String! |
@Profile.ExperimentalPreconnectFeature for |
const String! |
PRERENDER_WITH_URL = "PRERENDER_URL_V2"Feature for |
const String! |
@Profile.ExperimentalUrlPrefetchFeature for |
const String! |
PROXY_OVERRIDE = "PROXY_OVERRIDE"Feature for |
const String! |
PROXY_OVERRIDE_REVERSE_BYPASS = "PROXY_OVERRIDE_REVERSE_BYPASS"Feature for |
const String! |
RECEIVE_HTTP_ERROR = "RECEIVE_HTTP_ERROR"Feature for |
const String! |
RECEIVE_WEB_RESOURCE_ERROR = "RECEIVE_WEB_RESOURCE_ERROR"Feature for |
const String! |
SAFE_BROWSING_ALLOWLIST = "SAFE_BROWSING_ALLOWLIST"Feature for |
const String! |
SAFE_BROWSING_ENABLE = "SAFE_BROWSING_ENABLE"Feature for |
const String! |
SAFE_BROWSING_HIT = "SAFE_BROWSING_HIT"Feature for |
const String! |
SAFE_BROWSING_PRIVACY_POLICY_URL = "SAFE_BROWSING_PRIVACY_POLICY_URL"Feature for |
const String! |
SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY = "SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY"Feature for |
const String! |
SAFE_BROWSING_RESPONSE_PROCEED = "SAFE_BROWSING_RESPONSE_PROCEED"Feature for |
const String! |
SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL = "SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL"Feature for |
const String! |
SAFE_BROWSING_WHITELIST = "SAFE_BROWSING_WHITELIST"This property is deprecated. Please use |
const String! |
SAVE_STATE = "SAVE_STATE"Feature for |
const String! |
SERVICE_WORKER_BASIC_USAGE = "SERVICE_WORKER_BASIC_USAGE"Feature for |
const String! |
SERVICE_WORKER_BLOCK_NETWORK_LOADS = "SERVICE_WORKER_BLOCK_NETWORK_LOADS"Feature for |
const String! |
SERVICE_WORKER_CACHE_MODE = "SERVICE_WORKER_CACHE_MODE"Feature for |
const String! |
SERVICE_WORKER_CONTENT_ACCESS = "SERVICE_WORKER_CONTENT_ACCESS"Feature for |
const String! |
SERVICE_WORKER_FILE_ACCESS = "SERVICE_WORKER_FILE_ACCESS"Feature for |
const String! |
SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST = "SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST"Feature for |
const String! |
SHOULD_OVERRIDE_WITH_REDIRECTS = "SHOULD_OVERRIDE_WITH_REDIRECTS"Feature for |
const String! |
SPECULATIVE_LOADING = "SPECULATIVE_LOADING_STATUS"Feature for |
const String! |
@Profile.ExperimentalUrlPrefetchFeature for |
const String! |
STARTUP_FEATURE_CONFIGURE_PARTITIONED_COOKIES = "STARTUP_FEATURE_CONFIGURE_PARTITIONED_COOKIES"Feature for |
const String! |
STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX = "STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX"Feature for |
const String! |
STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS = "STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS"Feature for |
const String! |
STARTUP_FEATURE_SET_PROFILES_TO_LOAD = "STARTUP_FEATURE_SET_PROFILES_TO_LOAD"Feature for |
const String! |
@WebViewCompat.ExperimentalAsyncStartUpThis property is deprecated. Use |
const String! |
@WebViewCompat.ExperimentalAsyncStartUpFeature for |
const String! |
START_SAFE_BROWSING = "START_SAFE_BROWSING"Feature for |
const String! |
TRACING_CONTROLLER_BASIC_USAGE = "TRACING_CONTROLLER_BASIC_USAGE"Feature for |
const String! |
USER_AGENT_METADATA = "USER_AGENT_METADATA"Feature for |
const String! |
USER_AGENT_METADATA_FORM_FACTORS = "USER_AGENT_METADATA_FORM_FACTORS"Feature for |
const String! |
VISUAL_STATE_CALLBACK = "VISUAL_STATE_CALLBACK"Feature for |
const String! |
@Profile.ExperimentalWarmUpRendererProcessFeature for |
const String! |
@WebViewBuilder.ExperimentalFeature for |
const String! |
@WebViewBuilder.ExperimentalFeature for |
const String! |
WEBVIEW_MEDIA_INTEGRITY_API_STATUS = "WEBVIEW_MEDIA_INTEGRITY_API_STATUS"Feature for |
const String! |
@WebViewCompat.ExperimentalNavigateThis feature covers |
const String! |
WEB_AUTHENTICATION = "WEB_AUTHENTICATION"Feature for |
const String! |
WEB_MESSAGE_ARRAY_BUFFER = "WEB_MESSAGE_ARRAY_BUFFER"Feature for |
const String! |
WEB_MESSAGE_CALLBACK_ON_MESSAGE = "WEB_MESSAGE_CALLBACK_ON_MESSAGE"Feature for |
const String! |
WEB_MESSAGE_LISTENER = "WEB_MESSAGE_LISTENER"Feature for |
const String! |
WEB_MESSAGE_PORT_CLOSE = "WEB_MESSAGE_PORT_CLOSE"Feature for |
const String! |
WEB_MESSAGE_PORT_POST_MESSAGE = "WEB_MESSAGE_PORT_POST_MESSAGE"Feature for |
const String! |
WEB_MESSAGE_PORT_SET_MESSAGE_CALLBACK = "WEB_MESSAGE_PORT_SET_MESSAGE_CALLBACK"Feature for |
const String! |
WEB_RESOURCE_ERROR_GET_CODE = "WEB_RESOURCE_ERROR_GET_CODE"Feature for |
const String! |
WEB_RESOURCE_ERROR_GET_DESCRIPTION = "WEB_RESOURCE_ERROR_GET_DESCRIPTION"Feature for |
const String! |
WEB_RESOURCE_REQUEST_IS_REDIRECT = "WEB_RESOURCE_REQUEST_IS_REDIRECT"Feature for |
const String! |
WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE = "WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE"Feature for |
const String! |
WEB_VIEW_RENDERER_TERMINATE = "WEB_VIEW_RENDERER_TERMINATE"Feature for |
Public functions |
|
|---|---|
java-static Boolean |
isFeatureSupported(feature: String)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
ADD_QUIC_HINTS_V1
@Profile.ExperimentalAddQuicHints
const val ADD_QUIC_HINTS_V1 = "ADD_QUIC_HINTS": String!
Feature for addQuicHints.
ALGORITHMIC_DARKENING
const val ALGORITHMIC_DARKENING = "ALGORITHMIC_DARKENING": String!
Feature for isFeatureSupported. This feature covers setAlgorithmicDarkeningAllowed and isAlgorithmicDarkeningAllowed.
ATTRIBUTION_REGISTRATION_BEHAVIOR
const val ATTRIBUTION_REGISTRATION_BEHAVIOR = "ATTRIBUTION_REGISTRATION_BEHAVIOR": String!
Feature for isFeatureSupported. This feature covers setAttributionRegistrationBehaviorgetAttributionRegistrationBehavior
BACK_FORWARD_CACHE
const val BACK_FORWARD_CACHE = "BACK_FORWARD_CACHE": String!
Feature for isFeatureSupported. This feature covers setBackForwardCacheEnabledgetBackForwardCacheEnabled
BACK_FORWARD_CACHE_SETTINGS
const val BACK_FORWARD_CACHE_SETTINGS = "BACK_FORWARD_CACHE_SETTINGS": String!
Feature for isFeatureSupported. This feature covers setBackForwardCacheSettingsgetBackForwardCacheSettings
BACK_FORWARD_CACHE_SETTINGS_EXPERIMENTAL_V3
const val BACK_FORWARD_CACHE_SETTINGS_EXPERIMENTAL_V3 = "BACK_FORWARD_CACHE_SETTINGS_EXPERIMENTAL_V3": String!
Feature for isFeatureSupported. This feature covers setMaxPagesInCachesetTimeoutSeconds
BACK_FORWARD_CACHE_SETTINGS_EXPERIMENTAL_V4
@WebSettingsCompat.ExperimentalBackForwardCacheSettings
const val BACK_FORWARD_CACHE_SETTINGS_EXPERIMENTAL_V4 = "BACK_FORWARD_CACHE_SETTINGS_EXPERIMENTAL_V4": String!
Feature for isFeatureSupported. This feature covers setKeepForwardEntriesEnabledisKeepForwardEntriesEnabled
COOKIE_INTERCEPT
const val COOKIE_INTERCEPT = "COOKIE_INTERCEPT": String!
Feature for isFeatureSupported. This feature covers setCookies, as well as setCookiesIncludedInShouldInterceptRequest and setIncludeCookiesOnShouldInterceptRequestEnabled.
CREATE_WEB_MESSAGE_CHANNEL
const val CREATE_WEB_MESSAGE_CHANNEL = "CREATE_WEB_MESSAGE_CHANNEL": String!
Feature for isFeatureSupported. This feature covers createWebMessageChannel.
CUSTOM_REQUEST_HEADERS
const val CUSTOM_REQUEST_HEADERS = "CUSTOM_REQUEST_HEADERS": String!
Feature for isFeatureSupported.
This feature covers addCustomHeader, hasCustomHeader, getCustomHeaders, getCustomHeaders, getCustomHeaders, clearCustomHeader, clearCustomHeader, and clearAllCustomHeaders.
DEFAULT_TRAFFICSTATS_TAGGING
const val DEFAULT_TRAFFICSTATS_TAGGING = "DEFAULT_TRAFFICSTATS_TAGGING": String!
Feature for isFeatureSupported. This feature covers setDefaultTrafficStatsTag}
DELETE_BROWSING_DATA
const val DELETE_BROWSING_DATA = "DELETE_BROWSING_DATA": String!
Feature for isFeatureSupported. This feature covers deleteBrowsingData, deleteBrowsingData, deleteBrowsingDataForSite, deleteBrowsingDataForSite
DISABLED_ACTION_MODE_MENU_ITEMS
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
const val DOCUMENT_START_SCRIPT = "DOCUMENT_START_SCRIPT": String!
Feature for isFeatureSupported. This feature covers addDocumentStartJavaScript.
DOWNLOAD_FAVICONS_ENABLED
const val DOWNLOAD_FAVICONS_ENABLED = "DOWNLOAD_FAVICONS_ENABLED": String!
Feature for setDownloadFaviconsEnabled, getDownloadFaviconsEnabled
ENQUEUE_PRECONNECT
@Profile.ExperimentalPreconnect
const val ENQUEUE_PRECONNECT = "ENQUEUE_PRECONNECT": String!
Feature for isFeatureSupported. This feature covers enqueuePreconnect
ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY
const val ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY = "ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY": String!
Feature for isFeatureSupported. This feature covers setEnterpriseAuthenticationAppLinkPolicyEnabledand getEnterpriseAuthenticationAppLinkPolicyEnabled.
FORCE_DARK
const val FORCE_DARK = "FORCE_DARK": String!
Feature for isFeatureSupported. This feature covers setForceDark and getForceDark.
FORCE_DARK_STRATEGY
const val FORCE_DARK_STRATEGY = "FORCE_DARK_STRATEGY": String!
Feature for isFeatureSupported. This feature covers setForceDarkStrategy and getForceDarkStrategy.
GET_COOKIE_INFO
const val GET_COOKIE_INFO = "GET_COOKIE_INFO": String!
Feature for isFeatureSupported. This feature covers getCookieInfo.
GET_VARIATIONS_HEADER
const val GET_VARIATIONS_HEADER = "GET_VARIATIONS_HEADER": String!
Feature for isFeatureSupported. This feature covers getVariationsHeader.
GET_WEB_CHROME_CLIENT
const val GET_WEB_CHROME_CLIENT = "GET_WEB_CHROME_CLIENT": String!
Feature for isFeatureSupported. This feature covers getWebChromeClient
GET_WEB_VIEW_CLIENT
const val GET_WEB_VIEW_CLIENT = "GET_WEB_VIEW_CLIENT": String!
Feature for isFeatureSupported. This feature covers getWebViewClient
GET_WEB_VIEW_RENDERER
const val GET_WEB_VIEW_RENDERER = "GET_WEB_VIEW_RENDERER": String!
Feature for isFeatureSupported. This feature covers getWebViewRenderProcess
HTTP_CACHE_MANAGER
const val HTTP_CACHE_MANAGER = "HTTP_CACHE_MANAGER": String!
Feature for isFeatureSupported. This feature covers getHttpCachegetDefaultQuotaBytesisUsingDefaultQuotauseDefaultQuotagetQuotaBytessetQuotaBytes
HYPERLINK_CONTEXT_MENU_ITEMS
const val HYPERLINK_CONTEXT_MENU_ITEMS = "HYPERLINK_CONTEXT_MENU_ITEMS": String!
This feature covers setHyperlinkContextMenuItems,
JS_INJECTION_IN_FRAME_AND_WORLD
const val JS_INJECTION_IN_FRAME_AND_WORLD = "JS_INJECTION_IN_FRAME_AND_WORLD": String!
Feature for injecting JavaScript into isolated worlds and iFrames. This feature covers: addJavaScriptOnEvent, addWebMessageListener, removeWebMessageListenergetExecutionWorld, and executeJavaScript.
MULTI_PROCESS
const val MULTI_PROCESS = "MULTI_PROCESS": String!
Feature for isFeatureSupported. This feature covers isMultiProcessEnabled
MULTI_PROFILE
const val MULTI_PROFILE = "MULTI_PROFILE": String!
Feature for isFeatureSupported. This feature covers getName. getWebStorage. getCookieManager. getGeolocationPermissions. getServiceWorkerController. getProfile. getOrCreateProfile. getAllProfileNames. deleteProfile. getInstance.
MUTE_AUDIO
const val MUTE_AUDIO = "MUTE_AUDIO": String!
Feature for isFeatureSupported. This feature covers isAudioMutedsetAudioMuted
NAVIGATION_GET_WEB_RESOURCE_ERROR
const val NAVIGATION_GET_WEB_RESOURCE_ERROR = "NAVIGATION_GET_WEB_RESOURCE_ERROR": String!
Feature for isFeatureSupported. This feature covers getWebResourceErrorgetDebugCode.
NAVIGATION_LISTENER
const val NAVIGATION_LISTENER = "NAVIGATION_LISTENER": String!
Feature for isFeatureSupported. This feature covers onNavigationStarted, onNavigationRedirected, onNavigationCompleted, onPageDeleted, onPageLoadEvent, onPageDomContentLoadedEvent, onFirstContentfulPaintMillis, onLargestContentfulPaintMillis, onPerformanceMarkMillis, getPage, getUrl, wasInitiatedByPage, isSameDocument, isReload, isHistory, isBack, isForward, didCommit, didCommitErrorPage, getStatusCode, isRestore, getUrl
NAVIGATION_LISTENER_NON_NULL_PAGE_FOR_SAME_DOCUMENT_NAVIGATIONS
const val NAVIGATION_LISTENER_NON_NULL_PAGE_FOR_SAME_DOCUMENT_NAVIGATIONS = "NAVIGATION_LISTENER_NON_NULL_PAGE_FOR_SAME_DOCUMENT_NAVIGATIONS": String!
const val NAVIGATION_LISTENER_ON_COMPLETED_FIRES_FOR_NON_COMMITTED = "NAVIGATION_LISTENER_ON_COMPLETED_FIRES_FOR_NON_COMMITTED": String!
OFF_SCREEN_PRERASTER
const val OFF_SCREEN_PRERASTER = "OFF_SCREEN_PRERASTER": String!
Feature for isFeatureSupported. This feature covers getOffscreenPreRaster, and setOffscreenPreRaster.
PAYMENT_REQUEST
const val PAYMENT_REQUEST = "PAYMENT_REQUEST": String!
Feature for isFeatureSupported. This feature covers setPaymentRequestEnabled, getPaymentRequestEnabled, setHasEnrolledInstrumentEnabled, and getHasEnrolledInstrumentEnabled,
POST_WEB_MESSAGE
const val POST_WEB_MESSAGE = "POST_WEB_MESSAGE": String!
Feature for isFeatureSupported. This feature covers postWebMessage.
PRECONNECT
@Profile.ExperimentalPreconnect
const val PRECONNECT = "PRECONNECT": String!
Feature for isFeatureSupported. This feature covers preconnect
PRERENDER_WITH_URL
const val PRERENDER_WITH_URL = "PRERENDER_URL_V2": String!
Feature for isFeatureSupported. This feature covers prerenderUrlAsync
PROFILE_URL_PREFETCH
@Profile.ExperimentalUrlPrefetch
const val PROFILE_URL_PREFETCH = "PREFETCH_URL_V5": String!
Feature for isFeatureSupported. This feature covers prefetchUrlAsyncprefetchUrlAsync
PROXY_OVERRIDE
const val PROXY_OVERRIDE = "PROXY_OVERRIDE": String!
Feature for isFeatureSupported. This feature covers setProxyOverride, clearProxyOverride, and
PROXY_OVERRIDE_REVERSE_BYPASS
const val PROXY_OVERRIDE_REVERSE_BYPASS = "PROXY_OVERRIDE_REVERSE_BYPASS": String!
Feature for isFeatureSupported. This feature covers setReverseBypassEnabled
RECEIVE_HTTP_ERROR
const val RECEIVE_HTTP_ERROR = "RECEIVE_HTTP_ERROR": String!
Feature for isFeatureSupported. This feature covers onReceivedHttpError.
RECEIVE_WEB_RESOURCE_ERROR
const val RECEIVE_WEB_RESOURCE_ERROR = "RECEIVE_WEB_RESOURCE_ERROR": String!
Feature for isFeatureSupported. This feature covers onReceivedError.
SAFE_BROWSING_ALLOWLIST
const val SAFE_BROWSING_ALLOWLIST = "SAFE_BROWSING_ALLOWLIST": String!
Feature for isFeatureSupported. This feature covers setSafeBrowsingAllowlist.
SAFE_BROWSING_ENABLE
const val SAFE_BROWSING_ENABLE = "SAFE_BROWSING_ENABLE": String!
Feature for isFeatureSupported. This feature covers getSafeBrowsingEnabled, and setSafeBrowsingEnabled.
SAFE_BROWSING_HIT
const val SAFE_BROWSING_HIT = "SAFE_BROWSING_HIT": String!
Feature for isFeatureSupported. This feature covers onSafeBrowsingHit.
SAFE_BROWSING_PRIVACY_POLICY_URL
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
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
const val SAFE_BROWSING_RESPONSE_PROCEED = "SAFE_BROWSING_RESPONSE_PROCEED": String!
Feature for isFeatureSupported. This feature covers proceed.
SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL
const val SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL = "SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL": String!
Feature for isFeatureSupported. This feature covers showInterstitial.
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.
SAVE_STATE
const val SAVE_STATE = "SAVE_STATE": String!
Feature for isFeatureSupported. This feature covers saveState.
SERVICE_WORKER_BASIC_USAGE
const val SERVICE_WORKER_BASIC_USAGE = "SERVICE_WORKER_BASIC_USAGE": String!
Feature for isFeatureSupported. This feature covers getInstance.
SERVICE_WORKER_BLOCK_NETWORK_LOADS
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
const val SERVICE_WORKER_CACHE_MODE = "SERVICE_WORKER_CACHE_MODE": String!
Feature for isFeatureSupported. This feature covers getCacheMode, and setCacheMode.
SERVICE_WORKER_CONTENT_ACCESS
const val SERVICE_WORKER_CONTENT_ACCESS = "SERVICE_WORKER_CONTENT_ACCESS": String!
Feature for isFeatureSupported. This feature covers getAllowContentAccess, and setAllowContentAccess.
SERVICE_WORKER_FILE_ACCESS
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
const val SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST = "SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST": String!
Feature for isFeatureSupported. This feature covers shouldInterceptRequest.
SHOULD_OVERRIDE_WITH_REDIRECTS
const val SHOULD_OVERRIDE_WITH_REDIRECTS = "SHOULD_OVERRIDE_WITH_REDIRECTS": String!
Feature for isFeatureSupported. This feature covers shouldOverrideUrlLoading.
SPECULATIVE_LOADING
const val SPECULATIVE_LOADING = "SPECULATIVE_LOADING_STATUS": String!
Feature for isFeatureSupported. This feature covers setSpeculativeLoadingStatusgetSpeculativeLoadingStatus}
SPECULATIVE_LOADING_CONFIG
@Profile.ExperimentalUrlPrefetch
const val SPECULATIVE_LOADING_CONFIG = "SPECULATIVE_LOADING_CONFIG_V2": String!
Feature for isFeatureSupported. This feature covers setSpeculativeLoadingConfig
STARTUP_FEATURE_CONFIGURE_PARTITIONED_COOKIES
const val STARTUP_FEATURE_CONFIGURE_PARTITIONED_COOKIES = "STARTUP_FEATURE_CONFIGURE_PARTITIONED_COOKIES": String!
Feature for isStartupFeatureSupported. This feature covers setPartitionedCookiesEnabled
STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX
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
const val STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS = "STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS": String!
Feature for isStartupFeatureSupported. This feature covers setDirectoryBasePaths
STARTUP_FEATURE_SET_PROFILES_TO_LOAD
const val STARTUP_FEATURE_SET_PROFILES_TO_LOAD = "STARTUP_FEATURE_SET_PROFILES_TO_LOAD": String!
Feature for isFeatureSupported. This feature covers setProfilesToLoadDuringStartup.
@WebViewCompat.ExperimentalAsyncStartUp
const val STARTUP_FEATURE_SET_UI_THREAD_STARTUP_MODE = "STARTUP_FEATURE_SET_UI_THREAD_STARTUP_MODE": String!
Feature for isStartupFeatureSupported. This feature covers setUiThreadStartupMode.
STARTUP_FEATURE_SET_UI_THREAD_STARTUP_MODE_V2
@WebViewCompat.ExperimentalAsyncStartUp
const val STARTUP_FEATURE_SET_UI_THREAD_STARTUP_MODE_V2 = "STARTUP_FEATURE_SET_UI_THREAD_STARTUP_MODE_V2": String!
Feature for isStartupFeatureSupported. This feature covers setUiThreadStartupMode.
START_SAFE_BROWSING
const val START_SAFE_BROWSING = "START_SAFE_BROWSING": String!
Feature for isFeatureSupported. This feature covers startSafeBrowsing.
TRACING_CONTROLLER_BASIC_USAGE
const val TRACING_CONTROLLER_BASIC_USAGE = "TRACING_CONTROLLER_BASIC_USAGE": String!
Feature for isFeatureSupported. This feature covers getInstance, isTracing, start, stop.
USER_AGENT_METADATA
const val USER_AGENT_METADATA = "USER_AGENT_METADATA": String!
Feature for isFeatureSupported. This feature covers getUserAgentMetadata, and setUserAgentMetadata.
USER_AGENT_METADATA_FORM_FACTORS
const val USER_AGENT_METADATA_FORM_FACTORS = "USER_AGENT_METADATA_FORM_FACTORS": String!
Feature for isFeatureSupported. This feature covers setFormFactors, and getFormFactors.
VISUAL_STATE_CALLBACK
const val VISUAL_STATE_CALLBACK = "VISUAL_STATE_CALLBACK": String!
Feature for isFeatureSupported. This feature covers postVisualStateCallback, and onPageCommitVisible.
WARM_UP_RENDERER_PROCESS
@Profile.ExperimentalWarmUpRendererProcess
const val WARM_UP_RENDERER_PROCESS = "WARM_UP_RENDERER_PROCESS": String!
Feature for isFeatureSupported. This feature covers warmUpRendererProcess.
WEBVIEW_BUILDER_EXPERIMENTAL_V1
@WebViewBuilder.Experimental
const val WEBVIEW_BUILDER_EXPERIMENTAL_V1 = "WEBVIEW_BUILDER_EXPERIMENTAL_V1": String!
Feature for isFeatureSupported. This feature covers: build.
WEBVIEW_BUILDER_EXPERIMENTAL_V2
@WebViewBuilder.Experimental
const val WEBVIEW_BUILDER_EXPERIMENTAL_V2 = "WEBVIEW_BUILDER_EXPERIMENTAL_V2": String!
Feature for isFeatureSupported. This feature covers: applyTo.
WEBVIEW_MEDIA_INTEGRITY_API_STATUS
const val WEBVIEW_MEDIA_INTEGRITY_API_STATUS = "WEBVIEW_MEDIA_INTEGRITY_API_STATUS": String!
Feature for isFeatureSupported. This feature covers setWebViewMediaIntegrityApiStatusgetWebViewMediaIntegrityApiStatus
WEBVIEW_NAVIGATE_EXPERIMENTAL_V1
@WebViewCompat.ExperimentalNavigate
const val WEBVIEW_NAVIGATE_EXPERIMENTAL_V1 = "WEBVIEW_NAVIGATE_EXPERIMENTAL_V1": String!
This feature covers navigate.
WEB_AUTHENTICATION
const val WEB_AUTHENTICATION = "WEB_AUTHENTICATION": String!
Feature for isFeatureSupported This feature covers setWebAuthenticationSupportgetWebAuthenticationSupport
WEB_MESSAGE_ARRAY_BUFFER
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
const val WEB_MESSAGE_CALLBACK_ON_MESSAGE = "WEB_MESSAGE_CALLBACK_ON_MESSAGE": String!
Feature for isFeatureSupported. This feature covers onMessage.
WEB_MESSAGE_LISTENER
const val WEB_MESSAGE_LISTENER = "WEB_MESSAGE_LISTENER": String!
Feature for isFeatureSupported. This feature covers addWebMessageListener and removeWebMessageListener.
WEB_MESSAGE_PORT_CLOSE
const val WEB_MESSAGE_PORT_CLOSE = "WEB_MESSAGE_PORT_CLOSE": String!
Feature for isFeatureSupported. This feature covers close.
WEB_MESSAGE_PORT_POST_MESSAGE
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
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
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
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
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
const val WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE = "WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE": String!
Feature for isFeatureSupported. This feature covers getWebViewRenderProcessClient, setWebViewRenderProcessClient,
WEB_VIEW_RENDERER_TERMINATE
const val WEB_VIEW_RENDERER_TERMINATE = "WEB_VIEW_RENDERER_TERMINATE": String!
Feature for isFeatureSupported. This feature covers terminate
Public functions
isFeatureSupported
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
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 |