Class LottieValueCallback<T>

    • 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. Refer to the javadoc for this class for a special case that requires manual invalidation each time you want to return something different from this method.

      • 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)