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.
-
Initializes a
URLScreenshotTransformobject.Declaration
Swift
public init()
-
Changes the
agentoption fromdesktoptomobile.Declaration
Swift
@discardableResult func mobileAgent() -> Self -
Changes the
modeoption fromalltowindow.Declaration
Swift
@discardableResult func windowMode() -> Self -
Adds the
widthoption.Declaration
Swift
@discardableResult func width(_ value: Int) -> SelfParameters
valueThe new width in pixels. Valid range:
1...10000 -
Adds the
heightoption.Declaration
Swift
@discardableResult func height(_ value: Int) -> SelfParameters
valueThe new height in pixels. Valid range:
1...10000 -
Adds the
delayoption.Declaration
Swift
@discardableResult func delay(_ value: Int) -> SelfParameters
valueDelay after which screenshot will be captured. Valid range:
1...20000 -
Adds the
orientationoption.Declaration
Swift
@discardableResult func orientation(_ value: TransformPageOrientation) -> SelfParameters
valueOrientation for which screenshot will be captured.
-
Adds the
deviceoption.Declaration
Swift
@discardableResult func device(_ value: String) -> SelfParameters
valueDevice for which screenshot will be captured.
View on GitHub
URLScreenshotTransform Class Reference