Package com.airbnb.lottie.value
Class LottieRelativeIntegerValueCallback
- java.lang.Object
-
- com.airbnb.lottie.value.LottieValueCallback<java.lang.Integer>
-
- com.airbnb.lottie.value.LottieRelativeIntegerValueCallback
-
public class LottieRelativeIntegerValueCallback extends LottieValueCallback<java.lang.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 java.lang.IntegergetOffset(LottieFrameInfo<java.lang.Integer> frameInfo)Override this to provide your own offset on every frame.java.lang.IntegergetValue(LottieFrameInfo<java.lang.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 java.lang.Integer getValue(LottieFrameInfo<java.lang.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.- Overrides:
getValuein classLottieValueCallback<java.lang.Integer>
-
getOffset
public java.lang.Integer getOffset(LottieFrameInfo<java.lang.Integer> frameInfo)
Override this to provide your own offset on every frame.
-
-