java.lang.Object | |
↳ | com.facebook.imagepipeline.animated.impl.AnimatedDrawableDiagnosticsNoop |
Implementation of AnimatedDrawableDiagnostics
that does nothing.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnimatedDrawableDiagnosticsNoop() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
drawDebugOverlay(Canvas canvas, Rect destRect)
Allows the diagnostics code to draw an overlay that may be useful for debugging.
| ||||||||||
static AnimatedDrawableDiagnosticsNoop | getInstance() | ||||||||||
void |
incrementDrawnFrames(int drawnFrames)
Increments the number of drawn frames for stats purposes.
| ||||||||||
void |
incrementDroppedFrames(int droppedFrames)
Increments the number of dropped frames for stats purposes.
| ||||||||||
void |
onDrawMethodBegin()
Called when the
draw(Canvas) method begins. | ||||||||||
void |
onDrawMethodEnd()
Called when the
draw(Canvas) method emds. | ||||||||||
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.
| ||||||||||
void |
onNextFrameMethodEnd()
Called when the AnimatedDrawable#onNextFrame method ends.
| ||||||||||
void |
onStartMethodBegin()
Called when the AnimatedDrawable#onStart method begins, which is the method that
resets and starts the animation.
| ||||||||||
void |
onStartMethodEnd()
Called when the AnimatedDrawable#onStart method ends.
| ||||||||||
void |
setBackend(AnimatedDrawableCachingBackend animatedDrawableBackend)
Sets the backend that the
AnimatedDrawable is using. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Allows the diagnostics code to draw an overlay that may be useful for debugging.
canvas | the canvas to draw to |
---|---|
destRect | the rectangle bounds to draw to |
Increments the number of drawn frames for stats purposes.
drawnFrames | the number of drawn frames |
---|
Increments the number of dropped frames for stats purposes.
droppedFrames | the number of dropped frames |
---|
Called when the AnimatedDrawable#onNextFrame method begins, which is the method that determines the next frame to render and configures itself to do so.
Called when the AnimatedDrawable#onNextFrame method ends.
Called when the AnimatedDrawable#onStart method begins, which is the method that resets and starts the animation.
Called when the AnimatedDrawable#onStart method ends.
Sets the backend that the AnimatedDrawable
is using.
animatedDrawableBackend | the backend |
---|