docs/javadoc/reference/com/facebook/fresco/animation/backend/AnimationBackendDelegateWithInactivityCheck.html
|
|
Summary: Nested Classes | Inherited Constants | Methods | Inherited Methods | [Expand All]
public class
extends AnimationBackendDelegate<T extends AnimationBackend>
| java.lang.Object | | ↳ | com.facebook.fresco.animation.backend.AnimationBackendDelegate<T extends com.facebook.fresco.animation.backend.AnimationBackend> | | | ↳ | com.facebook.fresco.animation.backend.AnimationBackendDelegateWithInactivityCheck<T extends com.facebook.fresco.animation.backend.AnimationBackend> |
Animation backend delegate for animation backends that implement AnimationBackendDelegateWithInactivityCheck.InactivityListener. After a certain inactivity period (default = #INACTIVITY_THRESHOLD_MS, onInactive() will be called.
This can for example be used to drop caches if needed.
New instances can be created with createForBackend(AnimationBackend, MonotonicClock, ScheduledExecutorService).
| Nested Classes |
|---|
| interface |
| [Expand] Inherited Constants | | --- | | From interface com.facebook.fresco.animation.backend.AnimationBackend
| int | INTRINSIC_DIMENSION_UNSET | Default value if the intrinsic dimensions are not set. |
| | From interface com.facebook.fresco.animation.backend.AnimationInformation
| int | LOOP_COUNT_INFINITE | Loop count to be returned by getLoopCount() when the animation should be repeated indefinitely. |
|
| Public Methods |
|---|
| static <T extends AnimationBackend & AnimationBackendDelegateWithInactivityCheck.InactivityListener> AnimationBackendDelegate<T> |
| static <T extends AnimationBackend> AnimationBackendDelegate<T> |
| boolean |
| Draw the frame for the given frame number on the canvas. |
| long |
| long |
| void |
| void |
| void |
| [Expand] Inherited Methods | | --- | | From class com.facebook.fresco.animation.backend.AnimationBackendDelegate
| void | clear()
Clean up animation data.
|
| boolean | drawFrame(Drawable parent, Canvas canvas, int frameNumber)
Draw the frame for the given frame number on the canvas.
|
| T | getAnimationBackend()
Get the current animation backend.
|
| int | getFrameCount()
Get the number of frames for the animation
|
| int | getFrameDurationMs(int frameNumber)
Get the frame duration for a given frame number in milliseconds.
|
| int | getIntrinsicHeight()
Get the intrinsic height of the underlying animation or INTRINSIC_DIMENSION_UNSET if not available.
|
| int | getIntrinsicWidth()
Get the intrinsic width of the underlying animation or INTRINSIC_DIMENSION_UNSET if not available.
|
| int | getLoopCount()
Get the number of loops the animation has or LOOP_COUNT_INFINITE for infinite looping.
|
| int | getSizeInBytes()
Get the size of the animation backend.
|
| void | setAlpha(int alpha)
Set the alpha value to be used for drawing frames in drawFrame(Drawable, Canvas, int) if supported.
|
| void | setAnimationBackend(T animationBackend)
Set the animation backend to forward calls to.
|
| void | setBounds(Rect bounds)
Called when the bounds of the parent drawable are updated.
|
| void | setColorFilter(ColorFilter colorFilter)
The color filter to be used for drawing frames in drawFrame(Drawable, Canvas, int) if supported.
|
| | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
| | From interface com.facebook.fresco.animation.backend.AnimationBackend
| abstract void | clear()
Clean up animation data.
|
| abstract boolean | drawFrame(Drawable parent, Canvas canvas, int frameNumber)
Draw the frame for the given frame number on the canvas.
|
| abstract int | getIntrinsicHeight()
Get the intrinsic height of the underlying animation or INTRINSIC_DIMENSION_UNSET if not available.
|
| abstract int | getIntrinsicWidth()
Get the intrinsic width of the underlying animation or INTRINSIC_DIMENSION_UNSET if not available.
|
| abstract int | getSizeInBytes()
Get the size of the animation backend.
|
| abstract void | setAlpha(int alpha)
Set the alpha value to be used for drawing frames in drawFrame(Drawable, Canvas, int) if supported.
|
| abstract void | setBounds(Rect bounds)
Called when the bounds of the parent drawable are updated.
|
| abstract void | setColorFilter(ColorFilter colorFilter)
The color filter to be used for drawing frames in drawFrame(Drawable, Canvas, int) if supported.
|
| | From interface com.facebook.fresco.animation.backend.AnimationInformation
| abstract int | getFrameCount()
Get the number of frames for the animation
|
| abstract int | getFrameDurationMs(int frameNumber)
Get the frame duration for a given frame number in milliseconds.
|
| abstract int | getLoopCount()
Get the number of loops the animation has or LOOP_COUNT_INFINITE for infinite looping.
|
|
Draw the frame for the given frame number on the canvas.
| parent | the parent that draws the frame | | canvas | the canvas to draw an | | frameNumber | the frame number of the frame to draw |
+Generated by Doclava. +