public class

BaseAnimationListener

extends Object
implements AnimationListener
java.lang.Object
   ↳ com.facebook.fresco.animation.drawable.BaseAnimationListener

Class Overview

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.

Summary

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

Public Constructors

public BaseAnimationListener ()

Public Methods

public void onAnimationFrame (AnimatedDrawable2 drawable, int frameNumber)

Called when a frame of the animation is about to be rendered.

Parameters
drawable the affected drawable
frameNumber the frame number to be rendered

public void onAnimationRepeat (AnimatedDrawable2 drawable)

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.

Parameters
drawable the affected drawable

public void onAnimationReset (AnimatedDrawable2 drawable)

Called when the animation is reset for the given drawable.

Parameters
drawable the affected drawable

public void onAnimationStart (AnimatedDrawable2 drawable)

Called when the animation is started for the given drawable.

Parameters
drawable the affected drawable

public void onAnimationStop (AnimatedDrawable2 drawable)

Called when the animation is stopped for the given drawable.

Parameters
drawable the affected drawable