Most visited

Recently visited

Animation.Listener

public static interface Animation.Listener

com.viro.core.Animation.Listener


Callback interface to respond to Animation events.

Summary

Public methods

abstract void onAnimationFinish(Animation animation, boolean canceled)

Invoked when the Animation finishes.

abstract void onAnimationStart(Animation animation)

Invoked when the Animation starts.

Public methods

onAnimationFinish

void onAnimationFinish (Animation animation, 
                boolean canceled)

Invoked when the Animation finishes. The Animation finishes when its playback has completed. If the Animation is looping, this is called after each loop completes. This callback is also triggered if an animation is terminated.

Parameters
animation Animation: The animation that ended.

canceled boolean: True if the animation was ended via stop(), false if the animation ran to completion and ended naturally.

onAnimationStart

void onAnimationStart (Animation animation)

Invoked when the Animation starts. The Animation starts after play() is invoked, and after the start delay expires. If the Animation is looping, this is called at the start of each loop.

Parameters
animation Animation: The Animation that started.

Hooray!