interface Listener
A listener that receives notifications from an animation. Notifications indicate animation related events, such as the start or end of the animation.
abstract fun onAnimationCancel(drawable: KyrieDrawable): Unit
Notifies the cancellation of the animation. |
|
abstract fun onAnimationEnd(drawable: KyrieDrawable): Unit
Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE. |
|
abstract fun onAnimationPause(drawable: KyrieDrawable): Unit
Notifies that the animation was paused. |
|
abstract fun onAnimationResume(drawable: KyrieDrawable): Unit
Notifies that the animation was resumed, after being previously paused. |
|
abstract fun onAnimationStart(drawable: KyrieDrawable): Unit
Notifies the start of the animation. |
|
abstract fun onAnimationUpdate(drawable: KyrieDrawable): Unit
Notifies the occurrence of another frame of the animation. |
abstract class ListenerAdapter : KyrieDrawable.Listener
This adapter class provides empty implementations of the methods from Listener. Any custom listener that cares only about a subset of the methods of this listener can simply subclass this adapter class instead of implementing the interface directly. |