CaptureScreenshotAction class final

Captures what is on screen as a PNG image. ${result} is {"image": "data:image/png;base64,...", "width", "height"} (in pixels): bind it to an image fill to show it, or upload it with a cloudFiles action whose source is ${result.image}. JSON: {"type": "captureScreenshot", "target": "app"}.

Inheritance

Constructors

CaptureScreenshotAction({CaptureTarget target = CaptureTarget.layout, String node = '', double pixelRatio = 0, bool enabled = true, bool nonBlocking = false, Predicate? when})
const

Properties

enabled → bool
False skips the action.
finalinherited
fieldsJson → Json
Its own fields, as JSON (sparse): what toJson writes besides type and the common fields. An action class outside this library overrides this.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
nested → List<ActionDef>
The actions it runs itself (branches, follow-ups), in order.
no setterinherited
node → String
CaptureTarget.node's node id.
final
nonBlocking → bool
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
pixelRatio → double
Image pixels per logical pixel; 0: the device's.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selfAndNested → Iterable<ActionDef>
This action, then every action nested in it, depth first.
no setterinherited
target → CaptureTarget
final
type → String
The JSON type.
no setteroverride
when → Predicate?
Runs only when it holds; null: always.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

typeName → const String