Click or drag to resize

EmulationClient Class

Version 86.0.240
This domain emulates different environments for the page.
Inheritance Hierarchy

Namespace:  CefSharp.DevTools.Emulation
Assembly:  CefSharp (in CefSharp.dll) Version: 86.0.240.0 (86.0.240.0)
Syntax
public class EmulationClient : DevToolsDomainBase

The EmulationClient type exposes the following members.

Constructors
  NameDescription
Public methodEmulationClient
Initializes a new instance of the EmulationClient class
Top
Methods
  NameDescription
Public methodCanEmulateAsync
Tells whether emulation is supported.
Public methodClearDeviceMetricsOverrideAsync
Clears the overriden device metrics.
Public methodClearGeolocationOverrideAsync
Clears the overriden Geolocation Position and Error.
Public methodClearIdleOverrideAsync
Clears Idle state overrides.
Protected methodEnumToString(Enum) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(PermissionType) (Inherited from DevToolsDomainBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResetPageScaleFactorAsync
Requests that page scale factor is reset to initial values.
Public methodSetCPUThrottlingRateAsync
Enables CPU throttling to emulate slow CPUs.
Public methodSetDefaultBackgroundColorOverrideAsync
Public methodSetDeviceMetricsOverrideAsync
Public methodSetDocumentCookieDisabledAsync
SetDocumentCookieDisabled
Public methodSetEmitTouchEventsForMouseAsync
SetEmitTouchEventsForMouse
Public methodSetEmulatedMediaAsync
Emulates the given media type or media feature for CSS media queries.
Public methodSetEmulatedVisionDeficiencyAsync
Emulates the given vision deficiency.
Public methodSetFocusEmulationEnabledAsync
Enables or disables simulating a focused and active page.
Public methodSetGeolocationOverrideAsync
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.
Public methodSetIdleOverrideAsync
Overrides the Idle state.
Public methodSetLocaleOverrideAsync
Public methodSetPageScaleFactorAsync
Sets a specified page scale factor.
Public methodSetScriptExecutionDisabledAsync
Switches script execution in the page.
Public methodSetScrollbarsHiddenAsync
SetScrollbarsHidden
Public methodSetTimezoneOverrideAsync
Public methodSetTouchEmulationEnabledAsync
Enables touch on platforms which do not support them.
Public methodSetUserAgentOverrideAsync
Allows overriding user agent with the given string.
Public methodSetVirtualTimePolicyAsync
Protected methodToBase64String (Inherited from DevToolsDomainBase.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also