Interface Animation


  • public interface Animation
    • Method Summary

      Modifier and Type Method Description
      void disable()
      Disables animation domain notifications.
      void enable()
      Enables animation domain notifications.
      java.lang.Double getCurrentTime​(java.lang.String id)
      Returns the current time of the an animation.
      java.lang.Double getPlaybackRate()
      Gets the playback rate of the document timeline.
      void releaseAnimations​(java.util.List<java.lang.String> animations)
      Releases a set of animations to no longer be manipulated.
      RemoteObject resolveAnimation​(java.lang.String animationId)
      Gets the remote object of the Animation.
      void seekAnimations​(java.util.List<java.lang.String> animations, java.lang.Double currentTime)
      Seek a set of animations to a particular time within each animation.
      void setPaused​(java.util.List<java.lang.String> animations, java.lang.Boolean paused)
      Sets the paused state of a set of animations.
      void setPlaybackRate​(java.lang.Double playbackRate)
      Sets the playback rate of the document timeline.
      void setTiming​(java.lang.String animationId, java.lang.Double duration, java.lang.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

        java.lang.Double getCurrentTime​(java.lang.String id)
        Returns the current time of the an animation.
        Parameters:
        id - Id of animation.
        Returns:
        Current time of the page.
      • getPlaybackRate

        java.lang.Double getPlaybackRate()
        Gets the playback rate of the document timeline.
        Returns:
        Playback rate for animations on page.
      • releaseAnimations

        void releaseAnimations​(java.util.List<java.lang.String> animations)
        Releases a set of animations to no longer be manipulated.
        Parameters:
        animations - List of animation ids to seek.
      • resolveAnimation

        RemoteObject resolveAnimation​(java.lang.String animationId)
        Gets the remote object of the Animation.
        Parameters:
        animationId - Animation id.
        Returns:
        Corresponding remote object.
      • seekAnimations

        void seekAnimations​(java.util.List<java.lang.String> animations,
                            java.lang.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​(java.util.List<java.lang.String> animations,
                       java.lang.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​(java.lang.Double playbackRate)
        Sets the playback rate of the document timeline.
        Parameters:
        playbackRate - Playback rate for animations on page
      • setTiming

        void setTiming​(java.lang.String animationId,
                       java.lang.Double duration,
                       java.lang.Double delay)
        Sets the timing of an animation node.
        Parameters:
        animationId - Animation id.
        duration - Duration of the animation.
        delay - Delay of the animation.