forceDarkStrategy property
Sets whether Geolocation API is enabled. The default value is true
.
Set how WebView content should be darkened.
The default value is ForceDarkStrategy.PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING.
NOTE for Android native WebView: it will take effect only if WebViewFeature.isFeatureSupported returns true
for WebViewFeature.FORCE_DARK_STRATEGY.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebSettingsCompat.setForceDarkStrategy)
Implementation
ForceDarkStrategy? forceDarkStrategy;