Emulation |
The EmulationClient type exposes the following members.
Name | Description | |
---|---|---|
![]() | EmulationClient | Emulation |
Name | Description | |
---|---|---|
![]() | ClearDeviceMetricsOverrideAsync | Clears the overridden device metrics. |
![]() | ClearDevicePostureOverrideAsync | Clears a device posture override set with either setDeviceMetricsOverride() or setDevicePostureOverride() and starts using posture information from the platform again. Does nothing if no override is set. |
![]() | ClearGeolocationOverrideAsync | Clears the overridden Geolocation Position and Error. |
![]() | ClearIdleOverrideAsync | Clears Idle state overrides. |
![]() | EnumToString(ContentEncoding) | (Inherited from DevToolsDomainBase) |
![]() | EnumToString(CSPViolationType) | (Inherited from DevToolsDomainBase) |
![]() | EnumToString(DisabledImageType) | (Inherited from DevToolsDomainBase) |
![]() | EnumToString(Enum) | (Inherited from DevToolsDomainBase) |
![]() | EnumToString(PermissionType) | (Inherited from DevToolsDomainBase) |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() | GetOverriddenSensorInformationAsync | GetOverriddenSensorInformation |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
![]() | ResetPageScaleFactorAsync | Requests that page scale factor is reset to initial values. |
![]() | SetAutoDarkModeOverrideAsync | Automatically render all web contents using a dark theme. |
![]() | SetAutomationOverrideAsync | Allows overriding the automation flag. |
![]() | SetCPUThrottlingRateAsync | Enables CPU throttling to emulate slow CPUs. |
![]() | SetDefaultBackgroundColorOverrideAsync | Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one. |
![]() | SetDeviceMetricsOverrideAsync | Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results). |
![]() | SetDevicePostureOverrideAsync | Start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride(). |
![]() | SetDisabledImageTypesAsync | SetDisabledImageTypes |
![]() | SetDocumentCookieDisabledAsync | SetDocumentCookieDisabled |
![]() | SetEmitTouchEventsForMouseAsync | SetEmitTouchEventsForMouse |
![]() | SetEmulatedMediaAsync | Emulates the given media type or media feature for CSS media queries. |
![]() | SetEmulatedVisionDeficiencyAsync | Emulates the given vision deficiency. |
![]() | SetFocusEmulationEnabledAsync | Enables or disables simulating a focused and active page. |
![]() | SetGeolocationOverrideAsync | Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. |
![]() | SetHardwareConcurrencyOverrideAsync | SetHardwareConcurrencyOverride |
![]() | SetIdleOverrideAsync | Overrides the Idle state. |
![]() | SetLocaleOverrideAsync | Overrides default host system locale with the specified one. |
![]() | SetPageScaleFactorAsync | Sets a specified page scale factor. |
![]() | SetPressureSourceOverrideEnabledAsync | Overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data. |
![]() | SetPressureStateOverrideAsync | Provides a given pressure state that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled. |
![]() | SetScriptExecutionDisabledAsync | Switches script execution in the page. |
![]() | SetScrollbarsHiddenAsync | SetScrollbarsHidden |
![]() | SetSensorOverrideEnabledAsync | Overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead. |
![]() | SetSensorOverrideReadingsAsync | Updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled. |
![]() | SetTimezoneOverrideAsync | Overrides default host system timezone with the specified one. |
![]() | SetTouchEmulationEnabledAsync | Enables touch on platforms which do not support them. |
![]() | SetUserAgentOverrideAsync | Allows overriding user agent with the given string. `userAgentMetadata` must be set for Client Hint headers to be sent. |
![]() | SetVirtualTimePolicyAsync | Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget. |
![]() | ToBase64String | (Inherited from DevToolsDomainBase) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |
Name | Description | |
---|---|---|
![]() | VirtualTimeBudgetExpired | Notification sent after the virtual time budget for the current VirtualTimePolicy has run out. |