LayerTreeApi class

Constructors

LayerTreeApi(Client _client)

Properties

hashCode int
The hash code for this object.
no setterinherited
onLayerPainted Stream<LayerPaintedEvent>
no setter
onLayerTreeDidChange Stream<List<Layer>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compositingReasons(LayerId layerId) Future<CompositingReasonsResult>
Provides the reasons why the given layer was composited. layerId The id of the layer for which we want to get the reasons it was composited.
disable() Future<void>
Disables compositing tree inspection.
enable() Future<void>
Enables compositing tree inspection.
loadSnapshot(List<PictureTile> tiles) Future<SnapshotId>
Returns the snapshot identifier. tiles An array of tiles composing the snapshot. Returns: The id of the snapshot.
makeSnapshot(LayerId layerId) Future<SnapshotId>
Returns the layer snapshot identifier. layerId The id of the layer. Returns: The id of the layer snapshot.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
profileSnapshot(SnapshotId snapshotId, {int? minRepeatCount, num? minDuration, Rect? clipRect}) Future<List<PaintProfile>>
snapshotId The id of the layer snapshot. minRepeatCount The maximum number of times to replay the snapshot (1, if not specified). minDuration The minimum duration (in seconds) to replay the snapshot. clipRect The clip rectangle to apply when replaying the snapshot. Returns: The array of paint profiles, one per run.
releaseSnapshot(SnapshotId snapshotId) Future<void>
Releases layer snapshot captured by the back-end. snapshotId The id of the layer snapshot.
replaySnapshot(SnapshotId snapshotId, {int? fromStep, int? toStep, num? scale}) Future<String>
Replays the layer snapshot and returns the resulting bitmap. 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). Returns: A data: URL for resulting image.
snapshotCommandLog(SnapshotId snapshotId) Future<List<Map<String, dynamic>>>
Replays the layer snapshot and returns canvas log. snapshotId The id of the layer snapshot. Returns: The array of canvas function calls.
toString() String
A string representation of this object.
inherited

Operators

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