Filestack Documentation

Class URLScreenshot​Transform

public class URLScreenshotTransform: Transform  

Captures content of given URL. The URL screenshot task will not work for content that is located in areas that require you to login. If the content is not publicly visible, then it will not be captured.

URLScreenshotTransform URLScreenshotTransform Transform Transform URLScreenshotTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a URLScreenshotTransform object.

Methods

mobile​Agent()

@discardableResult
    func mobileAgent() -> Self  

Changes the agent option from desktop to mobile.

window​Mode()

@discardableResult
    func windowMode() -> Self  

Changes the mode option from all to window.

width(_:​)

@discardableResult
    func width(_ value: Int) -> Self  

Adds the width option.

Parameters

value Int

The new width in pixels. Valid range: 1...10000

height(_:​)

@discardableResult
    func height(_ value: Int) -> Self  

Adds the height option.

Parameters

value Int

The new height in pixels. Valid range: 1...10000

delay(_:​)

@discardableResult
    func delay(_ value: Int) -> Self  

Adds the delay option.

Parameters

value Int

Delay after which screenshot will be captured. Valid range: 1...20000

orientation(_:​)

@discardableResult
    func orientation(_ value: TransformPageOrientation) -> Self  

Adds the orientation option.

Parameters

value Transform​Page​Orientation

Orientation for which screenshot will be captured.

device(_:​)

@discardableResult
    func device(_ value: String) -> Self  

Adds the device option.

Parameters

value String

Device for which screenshot will be captured.