public class LottieValueCallback<T>
extends java.lang.Object
KeyPath to modify
its animation values at runtime.| Modifier and Type | Field and Description |
|---|---|
protected T |
value
This can be set with
setValue(Object) to use a value instead of deferring
to the callback. |
| Constructor and Description |
|---|
LottieValueCallback() |
LottieValueCallback(T staticValue) |
| Modifier and Type | Method and Description |
|---|---|
T |
getValue(LottieFrameInfo<T> frameInfo)
Override this if you haven't set a static value in the constructor or with setValue.
|
T |
getValueInternal(float startFrame,
float endFrame,
T startValue,
T endValue,
float linearKeyframeProgress,
float interpolatedKeyframeProgress,
float overallProgress) |
void |
setAnimation(BaseKeyframeAnimation<?,?> animation) |
void |
setValue(T value) |
protected T value
setValue(Object) to use a value instead of deferring
to the callback.public LottieValueCallback()
public LottieValueCallback(T staticValue)
public T getValue(LottieFrameInfo<T> frameInfo)
public final void setValue(T value)
public final T getValueInternal(float startFrame, float endFrame, T startValue, T endValue, float linearKeyframeProgress, float interpolatedKeyframeProgress, float overallProgress)
public final void setAnimation(BaseKeyframeAnimation<?,?> animation)