Click or drag to resize

EmulationClient.SetAutoDarkModeOverrideAsync Method

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

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

Parameters

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

Return Value

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