pl.wendigo.chrome.api.page / CaptureScreenshotRequest

CaptureScreenshotRequest

data class CaptureScreenshotRequest (source)

Represents request frame that can be used with Page#captureScreenshot operation call.

Capture page screenshot.

Link
Page#captureScreenshot method documentation.

See Also

PageOperations.captureScreenshot

Constructors

<init>

CaptureScreenshotRequest(format: String? = null, quality: Int? = null, clip: Viewport? = null, fromSurface: Boolean? = null)

Represents request frame that can be used with Page#captureScreenshot operation call.

Properties

clip

val clip: Viewport?

Capture the screenshot of a given region only.

format

val format: String?

Image compression format (defaults to png).

fromSurface

val fromSurface: Boolean?

Capture the screenshot from the surface, rather than the view. Defaults to true.

quality

val quality: Int?

Compression quality from range 0..100 (jpeg only).