Interface UIViewAnimating

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void finishAnimationAtPosition​(long finalPosition)
      This method may only be called if the animator is in the stopped state.
      double fractionComplete()
      fractionComplete values are typically between 0 and 1.
      boolean isReversed()
      Reversed indicates that the animation is running in the reversed direction when running is YES.
      boolean isRunning()
      Running indicates that the animation is running either in the forward or the reversed direction.
      void pauseAnimation()
      Pauses an active, running animation, or start the animation as paused.
      void setFractionComplete​(double value)
      fractionComplete values are typically between 0 and 1.
      void setReversed​(boolean value)
      Reversed indicates that the animation is running in the reversed direction when running is YES.
      void startAnimation()
      Starts the animation either from an inactive state, or if the animation has been paused.
      void startAnimationAfterDelay​(double delay)
      Starts the animation after the given delay.
      long state()  
      void stopAnimation​(boolean withoutFinishing)
      Stops the animation.
    • Method Detail

      • finishAnimationAtPosition

        void finishAnimationAtPosition​(long finalPosition)
        This method may only be called if the animator is in the stopped state. The finalPosition argument should indicate the final values of the animated properties.
      • fractionComplete

        double fractionComplete()
        fractionComplete values are typically between 0 and 1. Some adopters may choose to give meaning to values less than zero and greater than 1 to facilitate over and undershooting. The setter is usually a nop when the animation is running. Adopters are free to change this if it makes sense. An adopter may also choose to only return a meaningful result for this property if it is read while the animation is not running.
      • isReversed

        boolean isReversed()
        Reversed indicates that the animation is running in the reversed direction when running is YES. If running is NO, it indicates that it will run in the reversed direction when it is started.
      • setReversed

        void setReversed​(boolean value)
        Reversed indicates that the animation is running in the reversed direction when running is YES. If running is NO, it indicates that it will run in the reversed direction when it is started.
      • isRunning

        boolean isRunning()
        Running indicates that the animation is running either in the forward or the reversed direction. The state of a running animation is always active.
      • pauseAnimation

        void pauseAnimation()
        Pauses an active, running animation, or start the animation as paused. This is different than stopping an animation.
      • setFractionComplete

        void setFractionComplete​(double value)
        fractionComplete values are typically between 0 and 1. Some adopters may choose to give meaning to values less than zero and greater than 1 to facilitate over and undershooting. The setter is usually a nop when the animation is running. Adopters are free to change this if it makes sense. An adopter may also choose to only return a meaningful result for this property if it is read while the animation is not running.
      • startAnimation

        void startAnimation()
        Starts the animation either from an inactive state, or if the animation has been paused.
      • startAnimationAfterDelay

        void startAnimationAfterDelay​(double delay)
        Starts the animation after the given delay.
      • state

        long state()
      • stopAnimation

        void stopAnimation​(boolean withoutFinishing)
        Stops the animation. The values of a view's animated property values are updated to correspond to the values that were last rendered. If withoutFinishing == YES, then the animator immediately becomes inactive. Otherwise it enters the stopped state and it is incumbent on the client to explicitly finish the animation by calling finishAnimationAtPosition:. Note when an animation finishes naturally this method is not called.