public interface

AnimatedDrawableDiagnostics

com.facebook.imagepipeline.animated.base.AnimatedDrawableDiagnostics
Known Indirect Subclasses

Class Overview

Diagnostics interface for AnimatedDrawable.

Summary

Public Methods
abstract void drawDebugOverlay(Canvas canvas, Rect destRect)
Allows the diagnostics code to draw an overlay that may be useful for debugging.
abstract void incrementDrawnFrames(int drawnFrames)
Increments the number of drawn frames for stats purposes.
abstract void incrementDroppedFrames(int droppedFrames)
Increments the number of dropped frames for stats purposes.
abstract void onDrawMethodBegin()
Called when the draw(Canvas) method begins.
abstract void onDrawMethodEnd()
Called when the draw(Canvas) method emds.
abstract void onNextFrameMethodBegin()
Called when the AnimatedDrawable#onNextFrame method begins, which is the method that determines the next frame to render and configures itself to do so.
abstract void onNextFrameMethodEnd()
Called when the AnimatedDrawable#onNextFrame method ends.
abstract void onStartMethodBegin()
Called when the AnimatedDrawable#onStart method begins, which is the method that resets and starts the animation.
abstract void onStartMethodEnd()
Called when the AnimatedDrawable#onStart method ends.
abstract void setBackend(AnimatedDrawableCachingBackend animatedDrawableBackend)
Sets the backend that the AnimatedDrawable is using.

Public Methods

public abstract void drawDebugOverlay (Canvas canvas, Rect destRect)

Allows the diagnostics code to draw an overlay that may be useful for debugging.

Parameters
canvas the canvas to draw to
destRect the rectangle bounds to draw to

public abstract void incrementDrawnFrames (int drawnFrames)

Increments the number of drawn frames for stats purposes.

Parameters
drawnFrames the number of drawn frames

public abstract void incrementDroppedFrames (int droppedFrames)

Increments the number of dropped frames for stats purposes.

Parameters
droppedFrames the number of dropped frames

public abstract void onDrawMethodBegin ()

Called when the draw(Canvas) method begins.

public abstract void onDrawMethodEnd ()

Called when the draw(Canvas) method emds.

public abstract void onNextFrameMethodBegin ()

Called when the AnimatedDrawable#onNextFrame method begins, which is the method that determines the next frame to render and configures itself to do so.

public abstract void onNextFrameMethodEnd ()

Called when the AnimatedDrawable#onNextFrame method ends.

public abstract void onStartMethodBegin ()

Called when the AnimatedDrawable#onStart method begins, which is the method that resets and starts the animation.

public abstract void onStartMethodEnd ()

Called when the AnimatedDrawable#onStart method ends.

public abstract void setBackend (AnimatedDrawableCachingBackend animatedDrawableBackend)

Sets the backend that the AnimatedDrawable is using.

Parameters
animatedDrawableBackend the backend