-
public class LottieRelativePointValueCallback extends LottieValueCallback<PointF>
LottieValueCallback that provides a value offset from the original animation rather than an absolute value.
-
-
Constructor Summary
Constructors Constructor Description LottieRelativePointValueCallback()LottieRelativePointValueCallback(PointF staticValue)
-
Method Summary
Modifier and Type Method Description final PointFgetValue(LottieFrameInfo<PointF> frameInfo)Override this if you haven't set a static value in the constructor or with setValue. PointFgetOffset(LottieFrameInfo<PointF> frameInfo)Override this to provide your own offset on every frame. -
-
Constructor Detail
-
LottieRelativePointValueCallback
LottieRelativePointValueCallback()
-
LottieRelativePointValueCallback
LottieRelativePointValueCallback(PointF staticValue)
-
-
Method Detail
-
getValue
final PointF getValue(LottieFrameInfo<PointF> 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
PointF getOffset(LottieFrameInfo<PointF> frameInfo)
Override this to provide your own offset on every frame.
-
-
-
-