Package io.webfolder.cdp.command
Interface Animation
-
public interface Animation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisable()Disables animation domain notifications.voidenable()Enables animation domain notifications.DoublegetCurrentTime(String id)Returns the current time of the an animation.DoublegetPlaybackRate()Gets the playback rate of the document timeline.voidreleaseAnimations(List<String> animations)Releases a set of animations to no longer be manipulated.RemoteObjectresolveAnimation(String animationId)Gets the remote object of the Animation.voidseekAnimations(List<String> animations, Double currentTime)Seek a set of animations to a particular time within each animation.voidsetPaused(List<String> animations, Boolean paused)Sets the paused state of a set of animations.voidsetPlaybackRate(Double playbackRate)Sets the playback rate of the document timeline.voidsetTiming(String animationId, Double duration, Double delay)Sets the timing of an animation node.
-
-
-
Method Detail
-
disable
void disable()
Disables animation domain notifications.
-
enable
void enable()
Enables animation domain notifications.
-
getCurrentTime
Double getCurrentTime(String id)
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
void releaseAnimations(List<String> animations)
Releases a set of animations to no longer be manipulated.- Parameters:
animations- List of animation ids to seek.
-
resolveAnimation
RemoteObject resolveAnimation(String animationId)
Gets the remote object of the Animation.- Parameters:
animationId- Animation id.- Returns:
- Corresponding remote object.
-
seekAnimations
void seekAnimations(List<String> animations, Double currentTime)
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
void setPaused(List<String> animations, Boolean paused)
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
void setPlaybackRate(Double playbackRate)
Sets the playback rate of the document timeline.- Parameters:
playbackRate- Playback rate for animations on page
-
-