EmulationClientSetAutoDarkModeOverrideAsync Method |
Version 130.1.90
Automatically render all web contents using a dark theme.
Namespace: CefSharp.DevTools.EmulationAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> SetAutoDarkModeOverrideAsync(
bool? enabled = null
)
public:
Task<DevToolsMethodResponse^>^ SetAutoDarkModeOverrideAsync(
Nullable<bool> enabled = nullptr
)
Parameters
- enabled NullableBoolean (Optional)
- Whether to enable or disable automatic dark mode.If not specified, any existing override will be cleared.
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also