K - Keyframe typeA - Animation typepublic abstract class BaseKeyframeAnimation<K,A>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
BaseKeyframeAnimation.AnimationListener |
| Modifier and Type | Field and Description |
|---|---|
protected LottieValueCallback<A> |
valueCallback |
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateListener(BaseKeyframeAnimation.AnimationListener listener) |
protected Keyframe<K> |
getCurrentKeyframe() |
protected float |
getInterpolatedCurrentKeyframeProgress()
Takes the value of
getLinearCurrentKeyframeProgress() and interpolates it with
the current keyframe's interpolator. |
float |
getProgress() |
A |
getValue() |
void |
notifyListeners() |
void |
setIsDiscrete() |
void |
setProgress(float progress) |
void |
setValueCallback(LottieValueCallback<A> valueCallback) |
protected LottieValueCallback<A> valueCallback
public void setIsDiscrete()
public void addUpdateListener(BaseKeyframeAnimation.AnimationListener listener)
public void setProgress(float progress)
public void notifyListeners()
protected float getInterpolatedCurrentKeyframeProgress()
getLinearCurrentKeyframeProgress() and interpolates it with
the current keyframe's interpolator.public A getValue()
public float getProgress()
public void setValueCallback(LottieValueCallback<A> valueCallback)