Package com.airbnb.lottie.value
Class LottieRelativeIntegerValueCallback
- java.lang.Object
-
- com.airbnb.lottie.value.LottieValueCallback<Integer>
-
- com.airbnb.lottie.value.LottieRelativeIntegerValueCallback
-
public class LottieRelativeIntegerValueCallback extends LottieValueCallback<Integer>
LottieValueCallbackthat provides a value offset from the original animation rather than an absolute value.
-
-
Field Summary
-
Fields inherited from class com.airbnb.lottie.value.LottieValueCallback
value
-
-
Constructor Summary
Constructors Constructor Description LottieRelativeIntegerValueCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetOffset(LottieFrameInfo<Integer> frameInfo)Override this to provide your own offset on every frame.IntegergetValue(LottieFrameInfo<Integer> frameInfo)Override this if you haven't set a static value in the constructor or with setValue.-
Methods inherited from class com.airbnb.lottie.value.LottieValueCallback
getValueInternal, setAnimation, setValue
-
-
-
-
Method Detail
-
getValue
public Integer getValue(LottieFrameInfo<Integer> frameInfo)
Description copied from class:LottieValueCallbackOverride 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.
- Overrides:
getValuein classLottieValueCallback<Integer>
-
getOffset
public Integer getOffset(LottieFrameInfo<Integer> frameInfo)
Override this to provide your own offset on every frame.
-
-