java.lang.Object | |
↳ | com.facebook.fresco.animation.drawable.BaseAnimationListener |
Base animation listener. This convenience class can be used to simplify the code if the extending class is not interested in all events. Just override the ones you need.
See AnimationListener
for more information.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BaseAnimationListener() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
onAnimationFrame(AnimatedDrawable2 drawable, int frameNumber)
Called when a frame of the animation is about to be rendered.
| ||||||||||
void |
onAnimationRepeat(AnimatedDrawable2 drawable)
Called when the animation is repeated for the given drawable.
| ||||||||||
void |
onAnimationReset(AnimatedDrawable2 drawable)
Called when the animation is reset for the given drawable.
| ||||||||||
void |
onAnimationStart(AnimatedDrawable2 drawable)
Called when the animation is started for the given drawable.
| ||||||||||
void |
onAnimationStop(AnimatedDrawable2 drawable)
Called when the animation is stopped for the given drawable.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.fresco.animation.drawable.AnimationListener
|
Called when a frame of the animation is about to be rendered.
drawable | the affected drawable |
---|---|
frameNumber | the frame number to be rendered |
Called when the animation is repeated for the given drawable. Animations have a loop count, and frame count, so this is called when the frame count is 0 and the loop count is increased.
drawable | the affected drawable |
---|
Called when the animation is reset for the given drawable.
drawable | the affected drawable |
---|
Called when the animation is started for the given drawable.
drawable | the affected drawable |
---|
Called when the animation is stopped for the given drawable.
drawable | the affected drawable |
---|