Class LottieValueCallback<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T value
      This can be set with setValue(Object) to use a value instead of deferring to the callback.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getValue​(LottieFrameInfo<T> frameInfo)
      Override this if you haven't set a static value in the constructor or with setValue.
      T getValueInternal​(float startFrame, float endFrame, T startValue, T endValue, float linearKeyframeProgress, float interpolatedKeyframeProgress, float overallProgress)  
      void setAnimation​(BaseKeyframeAnimation<?,​?> animation)  
      void setValue​(T value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        @Nullable
        protected T value
        This can be set with setValue(Object) to use a value instead of deferring to the callback.
    • Constructor Detail

      • LottieValueCallback

        public LottieValueCallback()
      • LottieValueCallback

        public LottieValueCallback​(@Nullable
                                   T staticValue)
    • Method Detail

      • getValue

        @Nullable
        public T getValue​(LottieFrameInfo<T> frameInfo)
        Override this if you haven't set a static value in the constructor or with setValue. Return null to resort to the default value.
      • setValue

        public final void setValue​(@Nullable
                                   T value)
      • getValueInternal

        @Nullable
        public final T getValueInternal​(float startFrame,
                                        float endFrame,
                                        T startValue,
                                        T endValue,
                                        float linearKeyframeProgress,
                                        float interpolatedKeyframeProgress,
                                        float overallProgress)