Share via


WebSettings.ForceDarkAuto Field

Definition

Enable force dark dependent on the state of the WebView parent view.

[Android.Runtime.Register("FORCE_DARK_AUTO", ApiSince=29)]
public const Android.Webkit.ForceDarkMode ForceDarkAuto = 1;
[<Android.Runtime.Register("FORCE_DARK_AUTO", ApiSince=29)>]
val mutable ForceDarkAuto : Android.Webkit.ForceDarkMode

Field Value

Value = 1
Attributes

Remarks

Enable force dark dependent on the state of the WebView parent view. If the WebView parent view is being automatically force darkened (see: android.view.View#setForceDarkAllowed), then WebView content will be rendered so as to emulate a dark theme. WebViews that are not attached to the view hierarchy will not be inverted.

This member is deprecated. refer to #setForceDark

Java documentation for android.webkit.WebSettings.FORCE_DARK_AUTO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to