Builder

class Builder(val width: Int, val height: Int, val deviceScaleFactor: Double, val mobile: Boolean)

A builder for SetDeviceMetricsOverrideRequest, which allows setting the optional parameters of the PageDomain.setDeviceMetricsOverride command via a lambda.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, deviceScaleFactor: Double, mobile: Boolean)

Properties

Link copied to clipboard

Overriding device scale factor value. 0 disables the override.

Link copied to clipboard

Do not set visible view size, rely upon explicit setVisibleSize call.

Link copied to clipboard
val height: Int

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

Link copied to clipboard

Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.

Link copied to clipboard

Overriding view X position on screen in pixels (minimum 0, maximum 10000000).

Link copied to clipboard

Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).

Link copied to clipboard

Scale to apply to resulting view image.

Link copied to clipboard

Overriding screen height value in pixels (minimum 0, maximum 10000000).

Link copied to clipboard

Screen orientation override.

Link copied to clipboard

Overriding screen width value in pixels (minimum 0, maximum 10000000).

Link copied to clipboard

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

Link copied to clipboard
val width: Int

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

Functions

Link copied to clipboard