Package io.webfolder.cdp.command
Interface Animation
public interface Animation
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Disables animation domain notifications.void
enable()
Enables animation domain notifications.getCurrentTime
(String id) Returns the current time of the an animation.Gets the playback rate of the document timeline.void
releaseAnimations
(List<String> animations) Releases a set of animations to no longer be manipulated.resolveAnimation
(String animationId) Gets the remote object of the Animation.void
seekAnimations
(List<String> animations, Double currentTime) Seek a set of animations to a particular time within each animation.void
Sets the paused state of a set of animations.void
setPlaybackRate
(Double playbackRate) Sets the playback rate of the document timeline.void
Sets the timing of an animation node.
-
Method Details
-
disable
void disable()Disables animation domain notifications. -
enable
void enable()Enables animation domain notifications. -
getCurrentTime
Returns the current time of the an animation.- Parameters:
id
- Id of animation.- Returns:
- Current time of the page.
-
getPlaybackRate
Double getPlaybackRate()Gets the playback rate of the document timeline.- Returns:
- Playback rate for animations on page.
-
releaseAnimations
Releases a set of animations to no longer be manipulated.- Parameters:
animations
- List of animation ids to seek.
-
resolveAnimation
Gets the remote object of the Animation.- Parameters:
animationId
- Animation id.- Returns:
- Corresponding remote object.
-
seekAnimations
Seek a set of animations to a particular time within each animation.- Parameters:
animations
- List of animation ids to seek.currentTime
- Set the current time of each animation.
-
setPaused
Sets the paused state of a set of animations.- Parameters:
animations
- Animations to set the pause state of.paused
- Paused state to set to.
-
setPlaybackRate
Sets the playback rate of the document timeline.- Parameters:
playbackRate
- Playback rate for animations on page
-
setTiming
Sets the timing of an animation node.- Parameters:
animationId
- Animation id.duration
- Duration of the animation.delay
- Delay of the animation.
-