data class SetDeviceMetricsOverrideRequest
Request object containing input parameters for the EmulationDomain.setDeviceMetricsOverride command.
<init> |
Request object containing input parameters for the EmulationDomain.setDeviceMetricsOverride command. 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, displayFeature: DisplayFeature? = null) |
deviceScaleFactor |
Overriding device scale factor value. 0 disables the override. val deviceScaleFactor: Double |
displayFeature |
If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off. val displayFeature: DisplayFeature? |
dontSetVisibleSize |
Do not set visible view size, rely upon explicit setVisibleSize call. val dontSetVisibleSize: Boolean? |
height |
Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. val height: Int |
mobile |
Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. val mobile: Boolean |
positionX |
Overriding view X position on screen in pixels (minimum 0, maximum 10000000). val positionX: Int? |
positionY |
Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). val positionY: Int? |
scale |
Scale to apply to resulting view image. val scale: Double? |
screenHeight |
Overriding screen height value in pixels (minimum 0, maximum 10000000). val screenHeight: Int? |
screenOrientation |
Screen orientation override. val screenOrientation: ScreenOrientation? |
screenWidth |
Overriding screen width value in pixels (minimum 0, maximum 10000000). val screenWidth: Int? |
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 viewport: Viewport? |
width |
Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. val width: Int |