Animatable2Compat.AnimationCallback


abstract class Animatable2Compat.AnimationCallback


Abstract class for animation callback. Used to notify animation events.

Summary

Public constructors

Public functions

Unit

Called when the animation ends.

Unit

Called when the animation starts.

Public constructors

AnimationCallback

Added in 1.0.0
AnimationCallback()

Public functions

onAnimationEnd

Added in 1.0.0
fun onAnimationEnd(drawable: Drawable): Unit

Called when the animation ends.

Parameters
drawable: Drawable

The drawable finished the animation.

onAnimationStart

Added in 1.0.0
fun onAnimationStart(drawable: Drawable): Unit

Called when the animation starts.

Parameters
drawable: Drawable

The drawable started the animation.