ReplaySnapshotRequest

data class ReplaySnapshotRequest(snapshotId: SnapshotId, fromStep: Int?, toStep: Int?, scale: Double?)

Represents request frame that can be used with LayerTree#replaySnapshot operation call.

Replays the layer snapshot and returns the resulting bitmap.

See also

Constructors

ReplaySnapshotRequest
Link copied to clipboard
fun ReplaySnapshotRequest(snapshotId: SnapshotId, fromStep: Int? = null, toStep: Int? = null, scale: Double? = null)

Properties

fromStep
Link copied to clipboard
val fromStep: Int? = null
The first step to replay from (replay from the very start if not specified).
scale
Link copied to clipboard
val scale: Double? = null
The scale to apply while replaying (defaults to 1).
snapshotId
Link copied to clipboard
val snapshotId: SnapshotId
The id of the layer snapshot.
toStep
Link copied to clipboard
val toStep: Int? = null
The last step to replay to (replay till the end if not specified).

Sources

jvm source
Link copied to clipboard