Class BaseKeyframeAnimation<K,​A>

    • Field Detail

      • progress

        protected float progress
    • Method Detail

      • setIsDiscrete

        public void setIsDiscrete()
      • setProgress

        public void setProgress​(float progress)
      • notifyListeners

        public void notifyListeners()
      • getCurrentKeyframe

        protected Keyframe<K> getCurrentKeyframe()
      • getInterpolatedCurrentKeyframeProgress

        protected float getInterpolatedCurrentKeyframeProgress()
        Takes the value of getLinearCurrentKeyframeProgress() and interpolates it with the current keyframe's interpolator.
      • getValue

        public A getValue()
      • getProgress

        public float getProgress()
      • setValueCallback

        public void setValueCallback​(@Nullable
                                     LottieValueCallback<A> valueCallback)
      • getValue

        protected A getValue​(Keyframe<K> keyframe,
                             float linearKeyframeProgress,
                             float xKeyframeProgress,
                             float yKeyframeProgress)
        Similar to getValue(Keyframe, float) but used when an animation has separate interpolators for the X and Y axis.