URLScreenshotTransform

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.

Lifecycle

  • Initializes a URLScreenshotTransform object.

    Declaration

    Swift

    public init()

Public Functions

  • Changes the agent option from desktop to mobile.

    Declaration

    Swift

    @discardableResult
    func mobileAgent() -> Self
  • Changes the mode option from all to window.

    Declaration

    Swift

    @discardableResult
    func windowMode() -> Self
  • Adds the width option.

    Declaration

    Swift

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

    Parameters

    value

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

  • Adds the height option.

    Declaration

    Swift

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

    Parameters

    value

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

  • Adds the delay option.

    Declaration

    Swift

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

    Parameters

    value

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

  • Adds the orientation option.

    Declaration

    Swift

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

    Parameters

    value

    Orientation for which screenshot will be captured.

  • Adds the device option.

    Declaration

    Swift

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

    Parameters

    value

    Device for which screenshot will be captured.