kyrie / com.github.alexjlockwood.kyrie / KyrieDrawable / Listener

Listener

interface Listener

A listener that receives notifications from an animation. Notifications indicate animation related events, such as the start or end of the animation.

Functions

onAnimationCancel

abstract fun onAnimationCancel(drawable: KyrieDrawable): Unit

Notifies the cancellation of the animation.

onAnimationEnd

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.

onAnimationPause

abstract fun onAnimationPause(drawable: KyrieDrawable): Unit

Notifies that the animation was paused.

onAnimationResume

abstract fun onAnimationResume(drawable: KyrieDrawable): Unit

Notifies that the animation was resumed, after being previously paused.

onAnimationStart

abstract fun onAnimationStart(drawable: KyrieDrawable): Unit

Notifies the start of the animation.

onAnimationUpdate

abstract fun onAnimationUpdate(drawable: KyrieDrawable): Unit

Notifies the occurrence of another frame of the animation.

Inheritors

ListenerAdapter

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.