Package io.webfolder.cdp.command
Interface AnimationAsync
public interface AnimationAsync
-
Method Summary
Modifier and TypeMethodDescriptiondisable()
Disables animation domain notifications.enable()
Enables animation domain notifications.getCurrentTime
(String id) Returns the current time of the an animation.Gets the playback rate of the document timeline.releaseAnimations
(List<String> animations) Releases a set of animations to no longer be manipulated.resolveAnimation
(String animationId) Gets the remote object of the Animation.seekAnimations
(List<String> animations, Double currentTime) Seek a set of animations to a particular time within each animation.Sets the paused state of a set of animations.setPlaybackRate
(Double playbackRate) Sets the playback rate of the document timeline.Sets the timing of an animation node.
-
Method Details
-
disable
CompletableFuture<Void> disable()Disables animation domain notifications. -
enable
CompletableFuture<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
CompletableFuture<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.
-