kyrie / com.github.alexjlockwood.kyrie / KyrieDrawable / ListenerAdapter

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.

Constructors

<init>

ListenerAdapter()

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.

Functions

onAnimationCancel

open fun onAnimationCancel(drawable: KyrieDrawable): Unit

Notifies the cancellation of the animation.

onAnimationEnd

open 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

open fun onAnimationPause(drawable: KyrieDrawable): Unit

Notifies that the animation was paused.

onAnimationResume

open fun onAnimationResume(drawable: KyrieDrawable): Unit

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

onAnimationStart

open fun onAnimationStart(drawable: KyrieDrawable): Unit

Notifies the start of the animation.

onAnimationUpdate

open fun onAnimationUpdate(drawable: KyrieDrawable): Unit

Notifies the occurrence of another frame of the animation.