Class LayerTreeAdapter
Represents an adapter for the LayerTree domain to simplify the command interface.
public class LayerTreeAdapter
- Inheritance
-
LayerTreeAdapter
- Inherited Members
Constructors
LayerTreeAdapter(IDevToolsSession)
Initializes a new instance of the LayerTreeAdapter class.
public LayerTreeAdapter(IDevToolsSession session)
Parameters
sessionIDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
sessionis null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
CompositingReasons(CompositingReasonsCommandSettings, CancellationToken, int?, bool)
compositingReasons
public Task<CompositingReasonsCommandResponse> CompositingReasons(CompositingReasonsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandCompositingReasonsCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandDisableCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandEnableCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
LoadSnapshot(LoadSnapshotCommandSettings, CancellationToken, int?, bool)
loadSnapshot
public Task<LoadSnapshotCommandResponse> LoadSnapshot(LoadSnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandLoadSnapshotCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
MakeSnapshot(MakeSnapshotCommandSettings, CancellationToken, int?, bool)
makeSnapshot
public Task<MakeSnapshotCommandResponse> MakeSnapshot(MakeSnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandMakeSnapshotCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
ProfileSnapshot(ProfileSnapshotCommandSettings, CancellationToken, int?, bool)
profileSnapshot
public Task<ProfileSnapshotCommandResponse> ProfileSnapshot(ProfileSnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandProfileSnapshotCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
ReleaseSnapshot(ReleaseSnapshotCommandSettings, CancellationToken, int?, bool)
releaseSnapshot
public Task<ReleaseSnapshotCommandResponse?> ReleaseSnapshot(ReleaseSnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandReleaseSnapshotCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
ReplaySnapshot(ReplaySnapshotCommandSettings, CancellationToken, int?, bool)
replaySnapshot
public Task<ReplaySnapshotCommandResponse> ReplaySnapshot(ReplaySnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandReplaySnapshotCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SnapshotCommandLog(SnapshotCommandLogCommandSettings, CancellationToken, int?, bool)
snapshotCommandLog
public Task<SnapshotCommandLogCommandResponse> SnapshotCommandLog(SnapshotCommandLogCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSnapshotCommandLogCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Events
LayerPainted
layerPainted
public event EventHandler<LayerPaintedEventArgs>? LayerPainted
Event Type
LayerTreeDidChange
layerTreeDidChange
public event EventHandler<LayerTreeDidChangeEventArgs>? LayerTreeDidChange