Click or drag to resize

EmulationClientSetEmulatedMediaAsync Method

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

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

Parameters

media (Optional)
Type: SystemString
Media type to emulate. Empty string disables the override.
features (Optional)
Type: System.Collections.GenericIListMediaFeature
Media features to emulate.

Return Value

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