Class SetDeviceMetricsOverrideCommandSettings
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).
public sealed class SetDeviceMetricsOverrideCommandSettings : ICommand
- Inheritance
-
SetDeviceMetricsOverrideCommandSettings
- Implements
- Inherited Members
Properties
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
DeviceScaleFactor
Overriding device scale factor value. 0 disables the override.
[JsonPropertyName("deviceScaleFactor")]
public double DeviceScaleFactor { get; set; }
Property Value
DontSetVisibleSize
Do not set visible view size, rely upon explicit setVisibleSize call.
[JsonPropertyName("dontSetVisibleSize")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? DontSetVisibleSize { get; set; }
Property Value
- bool?
Height
Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
[JsonPropertyName("height")]
public long Height { get; set; }
Property Value
Mobile
Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.
[JsonPropertyName("mobile")]
public bool Mobile { get; set; }
Property Value
PositionX
Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
[JsonPropertyName("positionX")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? PositionX { get; set; }
Property Value
- long?
PositionY
Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
[JsonPropertyName("positionY")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? PositionY { get; set; }
Property Value
- long?
Scale
Scale to apply to resulting view image.
[JsonPropertyName("scale")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? Scale { get; set; }
Property Value
ScreenHeight
Overriding screen height value in pixels (minimum 0, maximum 10000000).
[JsonPropertyName("screenHeight")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? ScreenHeight { get; set; }
Property Value
- long?
ScreenOrientation
Screen orientation override.
[JsonPropertyName("screenOrientation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ScreenOrientation? ScreenOrientation { get; set; }
Property Value
ScreenWidth
Overriding screen width value in pixels (minimum 0, maximum 10000000).
[JsonPropertyName("screenWidth")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? ScreenWidth { get; set; }
Property Value
- long?
Viewport
The viewport dimensions and scale. If not set, the override is cleared.
[JsonPropertyName("viewport")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Viewport? Viewport { get; set; }
Property Value
Width
Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
[JsonPropertyName("width")]
public long Width { get; set; }