-
public class Keyframe<T>
-
-
Field Summary
Fields Modifier and Type Field Description public final TstartValuepublic TendValuepublic final Interpolatorinterpolatorpublic final InterpolatorxInterpolatorpublic final InterpolatoryInterpolatorpublic final floatstartFramepublic FloatendFrameprivate floatstartValueFloatprivate floatendValueFloatprivate intstartValueIntprivate intendValueIntprivate floatstartProgressprivate floatendProgresspublic PointFpathCp1public PointFpathCp2
-
Constructor Summary
Constructors Constructor Description Keyframe(LottieComposition composition, T startValue, T endValue, Interpolator interpolator, float startFrame, Float endFrame)Keyframe(LottieComposition composition, T startValue, T endValue, Interpolator xInterpolator, Interpolator yInterpolator, float startFrame, Float endFrame)Keyframe(T value)Non-animated value.
-
Method Summary
Modifier and Type Method Description floatgetStartValueFloat()Optimization to avoid autoboxing. floatgetEndValueFloat()Optimization to avoid autoboxing. intgetStartValueInt()Optimization to avoid autoboxing. intgetEndValueInt()Optimization to avoid autoboxing. floatgetStartProgress()floatgetEndProgress()Keyframe<T>copyWith(T startValue, T endValue)booleanisStatic()booleancontainsProgress(@FloatRange(from = 0f, to = 1f) float progress)StringtoString()-
-
Constructor Detail
-
Keyframe
Keyframe(LottieComposition composition, T startValue, T endValue, Interpolator interpolator, float startFrame, Float endFrame)
-
Keyframe
Keyframe(LottieComposition composition, T startValue, T endValue, Interpolator xInterpolator, Interpolator yInterpolator, float startFrame, Float endFrame)
-
Keyframe
Keyframe(T value)
Non-animated value.
-
-
Method Detail
-
getStartValueFloat
float getStartValueFloat()
Optimization to avoid autoboxing.
-
getEndValueFloat
float getEndValueFloat()
Optimization to avoid autoboxing.
-
getStartValueInt
int getStartValueInt()
Optimization to avoid autoboxing.
-
getEndValueInt
int getEndValueInt()
Optimization to avoid autoboxing.
-
getStartProgress
float getStartProgress()
-
getEndProgress
float getEndProgress()
-
isStatic
boolean isStatic()
-
containsProgress
boolean containsProgress(@FloatRange(from = 0f, to = 1f) float progress)
-
-
-
-