| package com.airbnb.lottie.value; |
| |
| /** |
| * Static value version of {@link LottieRelativeIntegerValueCallback}. |
| */ |
| public class LottieStaticRelativeIntegerValue extends LottieRelativeIntegerValueCallback { |
| |
| private final Integer offset; |
| |
| public LottieStaticRelativeIntegerValue(Integer offset) { |
| this.offset = offset; |
| } |
| |
| |
| @Override |
| public Integer getOffset( |
| float startFrame, float endFrame, |
| Integer startValue, Integer endValue, |
| float linearKeyframeProgress, float interpolatedKeyframeProgress, |
| float overallProgress) { |
| return offset; |
| } |
| } |