-
public class LottieRelativeFloatValueCallback extends LottieValueCallback<Float>
LottieValueCallback that provides a value offset from the original animation rather than an absolute value.
-
-
Constructor Summary
Constructors Constructor Description LottieRelativeFloatValueCallback()LottieRelativeFloatValueCallback(Float staticValue)
-
Method Summary
Modifier and Type Method Description FloatgetValue(LottieFrameInfo<Float> frameInfo)Override this if you haven't set a static value in the constructor or with setValue. FloatgetOffset(LottieFrameInfo<Float> frameInfo)-
-
Constructor Detail
-
LottieRelativeFloatValueCallback
LottieRelativeFloatValueCallback()
-
LottieRelativeFloatValueCallback
LottieRelativeFloatValueCallback(Float staticValue)
-
-
Method Detail
-
getValue
Float getValue(LottieFrameInfo<Float> 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
Float getOffset(LottieFrameInfo<Float> frameInfo)
-
-
-
-