public interface

AnimationInformation

com.facebook.fresco.animation.backend.AnimationInformation
Known Indirect Subclasses

Class Overview

Basic animation metadata: Frame and loop count & duration

Summary

Constants
int LOOP_COUNT_INFINITE Loop count to be returned by getLoopCount() when the animation should be repeated indefinitely.
Public Methods
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.

Constants

public static final int LOOP_COUNT_INFINITE

Loop count to be returned by getLoopCount() when the animation should be repeated indefinitely.

Constant Value: 0 (0x00000000)

Public Methods

public abstract int getFrameCount ()

Get the number of frames for the animation

Returns
  • the number of frames

public abstract 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 abstract int getLoopCount ()

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

Returns