EmulationClientSetAutoDarkModeOverrideAsync Method |
Version 106.0.290
Automatically render all web contents using a dark theme.
Namespace:
CefSharp.DevTools.Emulation
Assembly:
CefSharp (in CefSharp.dll) Version: 106.0.290.0 (106.0.290.0)
Syntax public Task<DevToolsMethodResponse> SetAutoDarkModeOverrideAsync(
bool? enabled = null
)
public:
Task<DevToolsMethodResponse^>^ SetAutoDarkModeOverrideAsync(
Nullable<bool> enabled = nullptr
)
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:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also