Package com.airbnb.lottie.value
Class LottieRelativePointValueCallback
- java.lang.Object
-
- com.airbnb.lottie.value.LottieValueCallback<PointF>
-
- com.airbnb.lottie.value.LottieRelativePointValueCallback
-
public class LottieRelativePointValueCallback extends LottieValueCallback<PointF>
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 LottieRelativePointValueCallback()LottieRelativePointValueCallback(PointF staticValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointFgetOffset(LottieFrameInfo<PointF> frameInfo)Override this to provide your own offset on every frame.PointFgetValue(LottieFrameInfo<PointF> 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
-
LottieRelativePointValueCallback
public LottieRelativePointValueCallback()
-
LottieRelativePointValueCallback
public LottieRelativePointValueCallback(@NonNull PointF staticValue)
-
-
Method Detail
-
getValue
public final PointF getValue(LottieFrameInfo<PointF> 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<PointF>
-
getOffset
public PointF getOffset(LottieFrameInfo<PointF> frameInfo)
Override this to provide your own offset on every frame.
-
-