Class AnimationAdapter
Represents an adapter for the Animation domain to simplify the command interface.
public class AnimationAdapter
- Inheritance
-
AnimationAdapter
- Inherited Members
Constructors
AnimationAdapter(IDevToolsSession)
Initializes a new instance of the AnimationAdapter class.
public AnimationAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
session
is null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetCurrentTime(GetCurrentTimeCommandSettings, CancellationToken, int?, bool)
getCurrentTime
public Task<GetCurrentTimeCommandResponse> GetCurrentTime(GetCurrentTimeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetCurrentTimeCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetPlaybackRate(GetPlaybackRateCommandSettings?, CancellationToken, int?, bool)
getPlaybackRate
public Task<GetPlaybackRateCommandResponse> GetPlaybackRate(GetPlaybackRateCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetPlaybackRateCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ReleaseAnimations(ReleaseAnimationsCommandSettings, CancellationToken, int?, bool)
releaseAnimations
public Task<ReleaseAnimationsCommandResponse?> ReleaseAnimations(ReleaseAnimationsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ReleaseAnimationsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ResolveAnimation(ResolveAnimationCommandSettings, CancellationToken, int?, bool)
resolveAnimation
public Task<ResolveAnimationCommandResponse> ResolveAnimation(ResolveAnimationCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ResolveAnimationCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SeekAnimations(SeekAnimationsCommandSettings, CancellationToken, int?, bool)
seekAnimations
public Task<SeekAnimationsCommandResponse?> SeekAnimations(SeekAnimationsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SeekAnimationsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetPaused(SetPausedCommandSettings, CancellationToken, int?, bool)
setPaused
public Task<SetPausedCommandResponse?> SetPaused(SetPausedCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetPausedCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetPlaybackRate(SetPlaybackRateCommandSettings, CancellationToken, int?, bool)
setPlaybackRate
public Task<SetPlaybackRateCommandResponse?> SetPlaybackRate(SetPlaybackRateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetPlaybackRateCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetTiming(SetTimingCommandSettings, CancellationToken, int?, bool)
setTiming
public Task<SetTimingCommandResponse?> SetTiming(SetTimingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetTimingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
AnimationCanceled
animationCanceled
public event EventHandler<AnimationCanceledEventArgs>? AnimationCanceled
Event Type
AnimationCreated
animationCreated
public event EventHandler<AnimationCreatedEventArgs>? AnimationCreated
Event Type
AnimationStarted
animationStarted
public event EventHandler<AnimationStartedEventArgs>? AnimationStarted
Event Type
AnimationUpdated
animationUpdated
public event EventHandler<AnimationUpdatedEventArgs>? AnimationUpdated