chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.page / SetDeviceMetricsOverrideRequest

SetDeviceMetricsOverrideRequest

data class SetDeviceMetricsOverrideRequest
Deprecated: Deprecated in the Chrome DevTools protocol

Request object containing input parameters for the PageDomain.setDeviceMetricsOverride command.

Constructors

<init>

Request object containing input parameters for the PageDomain.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)

Properties

deviceScaleFactor

Overriding device scale factor value. 0 disables the override.

val deviceScaleFactor: Double

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

The viewport dimensions and scale. If not set, the override is cleared.

val viewport: Viewport?

width

Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.

val width: Int