public class MotionAnimation extends Object
| Constructor and Description |
|---|
MotionAnimation(Animator animator,
Motion motion,
MotionAnimationListener listener)
Creates a motion animation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Starts (or restarts) this motion animation.
|
void |
stop()
Stops this motion animation.
|
public MotionAnimation(Animator animator, Motion motion, MotionAnimationListener listener)
animator - the animator instance with which the animation will be executed.motion - the motion of the animation.listener - the listener to notify during the animation.public void start()
public void stop()
IllegalStateException - if this method is called in an other thread than the MicroUI thread or during an animation tick.