Class AnimatedModel

com.yandex.runtime.model

public class AnimatedModel

An animated model.

Constructors

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

Methods

void addFrame( ModelProvider model, long duration)
List< Frame > getFrames()

Returns a list of animation frames.

int getLoopCount()

Returns the number of animation loops.

Fields

Constructor Detail

AnimatedModel

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

AnimatedModel

public AnimatedModel (int loopCount)

Method Detail

addFrame

public void addFrame (ModelProvider model, 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