Interface AnimationAsync


public interface AnimationAsync
  • Method Details

    • disable

      Disables animation domain notifications.
    • enable

      Enables animation domain notifications.
    • getCurrentTime

      CompletableFuture<Double> getCurrentTime(String id)
      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

      CompletableFuture<Void> releaseAnimations(List<String> animations)
      Releases a set of animations to no longer be manipulated.
      Parameters:
      animations - List of animation ids to seek.
    • resolveAnimation

      CompletableFuture<RemoteObject> resolveAnimation(String animationId)
      Gets the remote object of the Animation.
      Parameters:
      animationId - Animation id.
      Returns:
      Corresponding remote object.
    • seekAnimations

      CompletableFuture<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

      CompletableFuture<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

      CompletableFuture<Void> setPlaybackRate(Double playbackRate)
      Sets the playback rate of the document timeline.
      Parameters:
      playbackRate - Playback rate for animations on page
    • setTiming

      CompletableFuture<Void> setTiming(String animationId, Double duration, Double delay)
      Sets the timing of an animation node.
      Parameters:
      animationId - Animation id.
      duration - Duration of the animation.
      delay - Delay of the animation.