replaySnapshot

Replays the layer snapshot and returns the resulting bitmap.


suspend fun replaySnapshot(snapshotId: String, fromStep: Int? = null, toStep: Int? = null, scale: Double? = null): LayerTree.ReplaySnapshotReturn

Replays the layer snapshot and returns the resulting bitmap.

Parameters

snapshotId

The id of the layer snapshot.

fromStep

The first step to replay from (replay from the very start if not specified).

toStep

The last step to replay to (replay till the end if not specified).

scale

The scale to apply while replaying (defaults to 1).