Click or drag to resize

EmulationClientSetAutoDarkModeOverrideAsync Method

Version 112.3.0
Automatically render all web contents using a dark theme.

Namespace:  CefSharp.DevTools.Emulation
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 112.3.0.0
Syntax
public Task<DevToolsMethodResponse> SetAutoDarkModeOverrideAsync(
	bool? enabled = null
)

Parameters

enabled (Optional)
Type: SystemNullableBoolean
Whether to enable or disable automatic dark mode.If not specified, any existing override will be cleared.

Return Value

Type: TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also