blob: fbbe55722ee9827ee522386b2db373fca4b97792 [file] [log] [blame]
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;
}
}