-
public class LottieRelativeIntegerValueCallback extends LottieValueCallback<Integer>
LottieValueCallback that provides a value offset from the original animation rather than an absolute value.
-
-
Method Summary
Modifier and Type Method Description IntegergetValue(LottieFrameInfo<Integer> frameInfo)Override this if you haven't set a static value in the constructor or with setValue. IntegergetOffset(LottieFrameInfo<Integer> frameInfo)Override this to provide your own offset on every frame. -
-
Method Detail
-
getValue
Integer getValue(LottieFrameInfo<Integer> 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 invalidationeach time you want to return something different from this method.
-
getOffset
Integer getOffset(LottieFrameInfo<Integer> frameInfo)
Override this to provide your own offset on every frame.
-
-
-
-