-
- All Implemented Interfaces:
-
com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation.AnimationListener
public class DropShadowKeyframeAnimation implements BaseKeyframeAnimation.AnimationListener
-
-
Constructor Summary
Constructors Constructor Description DropShadowKeyframeAnimation(BaseKeyframeAnimation.AnimationListener listener, BaseLayer layer, DropShadowEffect dropShadowEffect)
-
Method Summary
Modifier and Type Method Description voidonValueChanged()voidapplyTo(Paint paint, Matrix parentMatrix, int parentAlpha)Applies a shadow to the provided Paint object, which will be applied to the Canvas behind whatever is drawn(a shape, bitmap, path, etc. voidsetColorCallback(@Nullable() LottieValueCallback<Integer> callback)voidsetOpacityCallback(@Nullable() LottieValueCallback<Float> callback)voidsetDirectionCallback(@Nullable() LottieValueCallback<Float> callback)voidsetDistanceCallback(@Nullable() LottieValueCallback<Float> callback)voidsetRadiusCallback(@Nullable() LottieValueCallback<Float> callback)-
-
Constructor Detail
-
DropShadowKeyframeAnimation
DropShadowKeyframeAnimation(BaseKeyframeAnimation.AnimationListener listener, BaseLayer layer, DropShadowEffect dropShadowEffect)
-
-
Method Detail
-
onValueChanged
void onValueChanged()
-
applyTo
void applyTo(Paint paint, Matrix parentMatrix, int parentAlpha)
Applies a shadow to the provided Paint object, which will be applied to the Canvas behind whatever is drawn(a shape, bitmap, path, etc.)
- Parameters:
parentAlpha- A value between 0 and 255 representing the combined alpha of all parents of this drop shadow effect.E.g.
-
setColorCallback
void setColorCallback(@Nullable() LottieValueCallback<Integer> callback)
-
setOpacityCallback
void setOpacityCallback(@Nullable() LottieValueCallback<Float> callback)
-
setDirectionCallback
void setDirectionCallback(@Nullable() LottieValueCallback<Float> callback)
-
setDistanceCallback
void setDistanceCallback(@Nullable() LottieValueCallback<Float> callback)
-
setRadiusCallback
void setRadiusCallback(@Nullable() LottieValueCallback<Float> callback)
-
-
-
-