public class

AnimatedDrawableBackendAnimationInformation

extends Object
implements AnimationInformation
java.lang.Object
   ↳ com.facebook.fresco.animation.bitmap.wrapper.AnimatedDrawableBackendAnimationInformation

Class Overview

AnimationInformation that wraps an AnimatedDrawableBackend.

Summary

[Expand]
Inherited Constants
From interface com.facebook.fresco.animation.backend.AnimationInformation
Public Constructors
AnimatedDrawableBackendAnimationInformation(AnimatedDrawableBackend animatedDrawableBackend)
Public Methods
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 getLoopCount()
Get the number of loops the animation has or LOOP_COUNT_INFINITE for infinite looping.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.fresco.animation.backend.AnimationInformation

Public Constructors

public AnimatedDrawableBackendAnimationInformation (AnimatedDrawableBackend animatedDrawableBackend)

Public Methods

public int getFrameCount ()

Get the number of frames for the animation

Returns
  • the number of frames

public int getFrameDurationMs (int frameNumber)

Get the frame duration for a given frame number in milliseconds.

Parameters
frameNumber the frame to get the duration for
Returns
  • the duration in ms

public int getLoopCount ()

Get the number of loops the animation has or LOOP_COUNT_INFINITE for infinite looping.

Returns