data class SetDeviceMetricsOverrideRequest
(source)
Represents request frame that can be used with Emulation#setDeviceMetricsOverride operation call.
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).
Link
Emulation#setDeviceMetricsOverride method documentation.
See Also
EmulationOperations.setDeviceMetricsOverride
SetDeviceMetricsOverrideRequest(width: Int, height: Int, deviceScaleFactor: Double, mobile: Boolean, scale: Double? = null, screenWidth: Int? = null, screenHeight: Int? = null, positionX: Int? = null, positionY: Int? = null, dontSetVisibleSize: Boolean? = null, screenOrientation: ScreenOrientation? = null, viewport: Viewport? = null)
Represents request frame that can be used with Emulation#setDeviceMetricsOverride operation call. |
val deviceScaleFactor: Double
Overriding device scale factor value. 0 disables the override. |
|
val dontSetVisibleSize: Boolean?
Do not set visible view size, rely upon explicit setVisibleSize call. |
|
val height: Int
Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. |
|
val mobile: Boolean
Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. |
|
val positionX: Int?
Overriding view X position on screen in pixels (minimum 0, maximum 10000000). |
|
val positionY: Int?
Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). |
|
val scale: Double?
Scale to apply to resulting view image. |
|
val screenHeight: Int?
Overriding screen height value in pixels (minimum 0, maximum 10000000). |
|
val screenOrientation: ScreenOrientation?
Screen orientation override. |
|
val screenWidth: Int?
Overriding screen width value in pixels (minimum 0, maximum 10000000). |
|
val viewport: Viewport?
If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions. |
|
val width: Int
Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. |