Class AnimatedImage

com.yandex.runtime.image

public class AnimatedImage

An animated image.

Constructors

AnimatedImage(int loopCount, List< Frame > frames)
AnimatedImage(int loopCount)

Methods

void addFrame( ImageProvider image, long duration)
List< Frame > getFrames()

Returns a list of animation frames.

int getLoopCount()

Returns the number of animation loops.

Fields

Constructor Detail

AnimatedImage

public AnimatedImage (int loopCount, List< Frame > frames)

AnimatedImage

public AnimatedImage (int loopCount)

Method Detail

addFrame

public void addFrame (ImageProvider image, long duration)

getFrames

public List< Frame > getFrames ()

Returns a list of animation frames.

getLoopCount

public int getLoopCount ()

Returns the number of animation loops.

The zero value is treated as infinity.

Field Detail

INFINITE_ANIMATION

public static INFINITE_ANIMATION = 0