Builder

class Builder

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

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Capture the screenshot beyond the viewport. Defaults to false.

Link copied to clipboard

Capture the screenshot of a given region only.

Link copied to clipboard

Image compression format (defaults to png).

Link copied to clipboard

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

Link copied to clipboard

Optimize image encoding for speed, not for resulting size (defaults to false)

Link copied to clipboard
var quality: Int?

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

Functions

Link copied to clipboard