Added in API level 1
AnimationListener
interface AnimationListener
android.view.animation.Animation.AnimationListener |
An animation listener receives notifications from an animation. Notifications indicate animation related events, such as the end or the repetition of the animation.
Summary
Public methods | |
---|---|
abstract Unit |
onAnimationEnd(animation: Animation!) Notifies the end of the animation. |
abstract Unit |
onAnimationRepeat(animation: Animation!) Notifies the repetition of the animation. |
abstract Unit |
onAnimationStart(animation: Animation!) Notifies the start of the animation. |
Public methods
onAnimationEnd
Added in API level 1
abstract fun onAnimationEnd(animation: Animation!): Unit
Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.
Parameters | |
---|---|
animation |
Animation!: The animation which reached its end. |
onAnimationRepeat
Added in API level 1
abstract fun onAnimationRepeat(animation: Animation!): Unit
Notifies the repetition of the animation.
Parameters | |
---|---|
animation |
Animation!: The animation which was repeated. |
onAnimationStart
Added in API level 1
abstract fun onAnimationStart(animation: Animation!): Unit
Notifies the start of the animation.
Parameters | |
---|---|
animation |
Animation!: The started animation. |