pl.wendigo.chrome.api.layertree / LayerTreeOperations

LayerTreeOperations

class LayerTreeOperations (source)

LayerTreeOperations represents LayerTree protocol domain request/response operations and events that can be captured.

This API is marked as experimental in protocol definition and can change in the future.

Link
Protocol LayerTree domain documentation.

Functions

compositingReasons

fun compositingReasons(input: CompositingReasonsRequest): Single<CompositingReasonsResponse>

Provides the reasons why the given layer was composited.

disable

fun disable(): Single<ResponseFrame>

Disables compositing tree inspection.

enable

fun enable(): Single<ResponseFrame>

Enables compositing tree inspection.

events

fun events(): Flowable<Event>

Returns flowable capturing all LayerTree domains events.

layerPainted

fun layerPainted(): Flowable<LayerPaintedEvent>

Returns observable capturing all LayerTree.layerPainted events.

layerTreeDidChange

fun layerTreeDidChange(): Flowable<LayerTreeDidChangeEvent>

Returns observable capturing all LayerTree.layerTreeDidChange events.

loadSnapshot

fun loadSnapshot(input: LoadSnapshotRequest): Single<LoadSnapshotResponse>

Returns the snapshot identifier.

makeSnapshot

fun makeSnapshot(input: MakeSnapshotRequest): Single<MakeSnapshotResponse>

Returns the layer snapshot identifier.

profileSnapshot

fun profileSnapshot(input: ProfileSnapshotRequest): Single<ProfileSnapshotResponse>

releaseSnapshot

fun releaseSnapshot(input: ReleaseSnapshotRequest): Single<ResponseFrame>

Releases layer snapshot captured by the back-end.

replaySnapshot

fun replaySnapshot(input: ReplaySnapshotRequest): Single<ReplaySnapshotResponse>

Replays the layer snapshot and returns the resulting bitmap.

snapshotCommandLog

fun snapshotCommandLog(input: SnapshotCommandLogRequest): Single<SnapshotCommandLogResponse>

Replays the layer snapshot and returns canvas log.