Google is committed to advancing racial equity for Black communities. See how.

WebViewFeature

open class WebViewFeature
kotlin.Any
   ↳ androidx.webkit.WebViewFeature

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

Summary

Constants
static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

static String

i* Feature for isFeatureSupported(String).

static String

Feature for isFeatureSupported(String).

Public methods
open static Boolean
isFeatureSupported(@NonNull feature: String)

Return whether a feature is supported at run-time.

Constants

CREATE_WEB_MESSAGE_CHANNEL

static val CREATE_WEB_MESSAGE_CHANNEL: String

Feature for isFeatureSupported(String). This feature covers androidx.webkit.WebViewCompat#createWebMessageChannel(WebView).

Value: "CREATE_WEB_MESSAGE_CHANNEL"

DISABLED_ACTION_MODE_MENU_ITEMS

static val DISABLED_ACTION_MODE_MENU_ITEMS: String

Feature for isFeatureSupported(String). This feature covers androidx.webkit.WebSettingsCompat#getDisabledActionModeMenuItems(WebSettings), and androidx.webkit.WebSettingsCompat#setDisabledActionModeMenuItems(WebSettings, int).

Value: "DISABLED_ACTION_MODE_MENU_ITEMS"

FORCE_DARK

static val FORCE_DARK: String

Feature for isFeatureSupported(String). This feature covers WebSettingsCompat#setForceDark(WebSettings, int) and WebSettingsCompat#getForceDark(WebSettings).

Value: "FORCE_DARK"

FORCE_DARK_STRATEGY

static val FORCE_DARK_STRATEGY: String

Feature for isFeatureSupported(String). This feature covers WebSettingsCompat#setForceDarkStrategy(WebSettings, int) and WebSettingsCompat#getForceDarkStrategy(WebSettings).

Value: "FORCE_DARK_STRATEGY"

GET_WEB_CHROME_CLIENT

static val GET_WEB_CHROME_CLIENT: String

Feature for isFeatureSupported(String). This feature covers androidx.webkit.WebViewCompat#getWebChromeClient(WebView)

Value: "GET_WEB_CHROME_CLIENT"

GET_WEB_VIEW_CLIENT

static val GET_WEB_VIEW_CLIENT: String

Feature for isFeatureSupported(String). This feature covers androidx.webkit.WebViewCompat#getWebViewClient(WebView)

Value: "GET_WEB_VIEW_CLIENT"

GET_WEB_VIEW_RENDERER

static val GET_WEB_VIEW_RENDERER: String

Feature for isFeatureSupported(String). This feature covers androidx.webkit.WebViewCompat#getWebViewRenderProcess(WebView)

Value: "GET_WEB_VIEW_RENDERER"

MULTI_PROCESS

static val MULTI_PROCESS: String

Feature for isFeatureSupported(String). This feature covers WebViewCompat#isMultiProcessEnabled()

Value: "MULTI_PROCESS"

OFF_SCREEN_PRERASTER

static val OFF_SCREEN_PRERASTER: String

Feature for isFeatureSupported(String). This feature covers androidx.webkit.WebSettingsCompat#getOffscreenPreRaster(WebSettings), and androidx.webkit.WebSettingsCompat#setOffscreenPreRaster(WebSettings, boolean).

Value: "OFF_SCREEN_PRERASTER"

POST_WEB_MESSAGE

static val POST_WEB_MESSAGE: String

Feature for isFeatureSupported(String). This feature covers androidx.webkit.WebViewCompat#postWebMessage(WebView, WebMessageCompat, Uri).

Value: "POST_WEB_MESSAGE"

PROXY_OVERRIDE

static val PROXY_OVERRIDE: String

Feature for isFeatureSupported(String). This feature covers ProxyController#setProxyOverride(ProxyConfig, Executor, Runnable), ProxyController#clearProxyOverride(Executor, Runnable), and

Value: "PROXY_OVERRIDE"

RECEIVE_HTTP_ERROR

static val RECEIVE_HTTP_ERROR: String

Feature for isFeatureSupported(String). This feature covers WebViewClientCompat#onReceivedHttpError(android.webkit.WebView, WebResourceRequest, * WebResourceResponse).

Value: "RECEIVE_HTTP_ERROR"

RECEIVE_WEB_RESOURCE_ERROR

static val RECEIVE_WEB_RESOURCE_ERROR: String

Feature for isFeatureSupported(String). This feature covers WebViewClientCompat#onReceivedError(android.webkit.WebView, WebResourceRequest, * WebResourceErrorCompat).

Value: "RECEIVE_WEB_RESOURCE_ERROR"

SAFE_BROWSING_ALLOWLIST

static val SAFE_BROWSING_ALLOWLIST: String

Feature for isFeatureSupported(String). This feature covers androidx.webkit.WebViewCompat#setSafeBrowsingAllowlist(Set, ValueCallback).

Value: "SAFE_BROWSING_ALLOWLIST"

SAFE_BROWSING_ENABLE

static val SAFE_BROWSING_ENABLE: String

Feature for isFeatureSupported(String). This feature covers androidx.webkit.WebSettingsCompat#getSafeBrowsingEnabled(WebSettings), and androidx.webkit.WebSettingsCompat#setSafeBrowsingEnabled(WebSettings, boolean).

Value: "SAFE_BROWSING_ENABLE"

SAFE_BROWSING_HIT

static val SAFE_BROWSING_HIT: String

Feature for isFeatureSupported(String). This feature covers