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