EmulationClientSetEmulatedMediaAsync Method |
Version 130.1.90
Emulates the given media type or media feature for CSS media queries.
Namespace: CefSharp.DevTools.EmulationAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> SetEmulatedMediaAsync(
string media = null,
IList<MediaFeature> features = null
)
public:
Task<DevToolsMethodResponse^>^ SetEmulatedMediaAsync(
String^ media = nullptr,
IList<MediaFeature^>^ features = nullptr
)
Parameters
- media String (Optional)
- Media type to emulate. Empty string disables the override.
- features IListMediaFeature (Optional)
- Media features to emulate.
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also