Class LottieValueAnimator

    • Field Detail

      • running

        protected boolean running
    • Constructor Detail

      • LottieValueAnimator

        public LottieValueAnimator()
    • Method Detail

      • getAnimatedValue

        public Object getAnimatedValue()
        Returns a float representing the current value of the animation from 0 to 1 regardless of the animation speed, direction, or min and max frames.
        Overrides:
        getAnimatedValue in class ValueAnimator
      • getAnimatedValueAbsolute

        @FloatRange(from=0.0,
                    to=1.0)
        public float getAnimatedValueAbsolute()
        Returns the current value of the animation from 0 to 1 regardless of the animation speed, direction, or min and max frames.
      • getAnimatedFraction

        @FloatRange(from=0.0,
                    to=1.0)
        public float getAnimatedFraction()
        Returns the current value of the currently playing animation taking into account direction, min and max frames.
        Overrides:
        getAnimatedFraction in class ValueAnimator
      • getFrame

        public float getFrame()
      • clearComposition

        public void clearComposition()
      • setFrame

        public void setFrame​(float frame)
      • setMinFrame

        public void setMinFrame​(int minFrame)
      • setMaxFrame

        public void setMaxFrame​(float maxFrame)
      • setMinAndMaxFrames

        public void setMinAndMaxFrames​(float minFrame,
                                       float maxFrame)
      • reverseAnimationSpeed

        public void reverseAnimationSpeed()
      • setSpeed

        public void setSpeed​(float speed)
      • getSpeed

        public float getSpeed()
        Returns the current speed. This will be affected by repeat mode REVERSE.
      • playAnimation

        @MainThread
        public void playAnimation()
      • endAnimation

        @MainThread
        public void endAnimation()
      • pauseAnimation

        @MainThread
        public void pauseAnimation()
      • resumeAnimation

        @MainThread
        public void resumeAnimation()
      • getMinFrame

        public float getMinFrame()
      • getMaxFrame

        public float getMaxFrame()
      • postFrameCallback

        protected void postFrameCallback()
      • removeFrameCallback

        @MainThread
        protected void removeFrameCallback()
      • removeFrameCallback

        @MainThread
        protected void removeFrameCallback​(boolean stopRunning)