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
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
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
Disables animation domain notifications.
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)
Enables animation domain notifications.
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandEnableCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
GetCurrentTime(GetCurrentTimeCommandSettings, CancellationToken, int?, bool)
Returns the current time of the an animation.
public Task<GetCurrentTimeCommandResponse> GetCurrentTime(GetCurrentTimeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandGetCurrentTimeCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
GetPlaybackRate(GetPlaybackRateCommandSettings?, CancellationToken, int?, bool)
Gets the playback rate of the document timeline.
public Task<GetPlaybackRateCommandResponse> GetPlaybackRate(GetPlaybackRateCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandGetPlaybackRateCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
ReleaseAnimations(ReleaseAnimationsCommandSettings, CancellationToken, int?, bool)
Releases a set of animations to no longer be manipulated.
public Task<ReleaseAnimationsCommandResponse?> ReleaseAnimations(ReleaseAnimationsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandReleaseAnimationsCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
ResolveAnimation(ResolveAnimationCommandSettings, CancellationToken, int?, bool)
Gets the remote object of the Animation.
public Task<ResolveAnimationCommandResponse> ResolveAnimation(ResolveAnimationCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandResolveAnimationCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SeekAnimations(SeekAnimationsCommandSettings, CancellationToken, int?, bool)
Seek a set of animations to a particular time within each animation.
public Task<SeekAnimationsCommandResponse?> SeekAnimations(SeekAnimationsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSeekAnimationsCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SetPaused(SetPausedCommandSettings, CancellationToken, int?, bool)
Sets the paused state of a set of animations.
public Task<SetPausedCommandResponse?> SetPaused(SetPausedCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSetPausedCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SetPlaybackRate(SetPlaybackRateCommandSettings, CancellationToken, int?, bool)
Sets the playback rate of the document timeline.
public Task<SetPlaybackRateCommandResponse?> SetPlaybackRate(SetPlaybackRateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSetPlaybackRateCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SetTiming(SetTimingCommandSettings, CancellationToken, int?, bool)
Sets the timing of an animation node.
public Task<SetTimingCommandResponse?> SetTiming(SetTimingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSetTimingCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Events
AnimationCanceled
Event for when an animation has been cancelled.
public event EventHandler<AnimationCanceledEventArgs>? AnimationCanceled
Event Type
AnimationCreated
Event for each animation that has been created.
public event EventHandler<AnimationCreatedEventArgs>? AnimationCreated
Event Type
AnimationStarted
Event for animation that has been started.
public event EventHandler<AnimationStartedEventArgs>? AnimationStarted
Event Type
AnimationUpdated
Event for animation that has been updated.
public event EventHandler<AnimationUpdatedEventArgs>? AnimationUpdated