Package com.airbnb.lottie.value
Class LottieRelativeFloatValueCallback
- java.lang.Object
-
- com.airbnb.lottie.value.LottieValueCallback<java.lang.Float>
-
- com.airbnb.lottie.value.LottieRelativeFloatValueCallback
-
public class LottieRelativeFloatValueCallback extends LottieValueCallback<java.lang.Float>
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 LottieRelativeFloatValueCallback()LottieRelativeFloatValueCallback(java.lang.Float staticValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.FloatgetOffset(LottieFrameInfo<java.lang.Float> frameInfo)java.lang.FloatgetValue(LottieFrameInfo<java.lang.Float> 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.Float getValue(LottieFrameInfo<java.lang.Float> 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.Float>
-
getOffset
public java.lang.Float getOffset(LottieFrameInfo<java.lang.Float> frameInfo)
-
-