Click or drag to resize

EmulationClientSetEmulatedMediaAsync Method

Version 130.1.90
Emulates the given media type or media feature for CSS media queries.

Namespace: CefSharp.DevTools.Emulation
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> SetEmulatedMediaAsync(
	string media = null,
	IList<MediaFeature> features = null
)

Parameters

media  String  (Optional)
Media type to emulate. Empty string disables the override.
features  IListMediaFeature  (Optional)
Media features to emulate.

Return Value

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