Class
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.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
mobileAgent()
@discardableResult
func mobileAgent() -> Self
Changes the agent
option from desktop
to mobile
.
windowMode()
@discardableResult
func windowMode() -> Self
Changes the mode
option from all
to window
.
width(_:)
@discardableResult
func width(_ value: Int) -> Self
Adds the width
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
The new width in pixels. Valid range: |
height(_:)
@discardableResult
func height(_ value: Int) -> Self
Adds the height
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
The new height in pixels. Valid range: |
delay(_:)
@discardableResult
func delay(_ value: Int) -> Self
Adds the delay
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
Delay after which screenshot will be captured. Valid range: |
orientation(_:)
@discardableResult
func orientation(_ value: TransformPageOrientation) -> Self
Adds the orientation
option.
Parameters
Name | Type | Description |
---|---|---|
value | TransformPageOrientation |
Orientation for which screenshot will be captured. |
device(_:)
@discardableResult
func device(_ value: String) -> Self
Adds the device
option.
Parameters
Name | Type | Description |
---|---|---|
value | String |
Device for which screenshot will be captured. |