AnimationCallback
abstract class AnimationCallback
kotlin.Any | |
↳ | androidx.vectordrawable.graphics.drawable.SeekableAnimatedVectorDrawable.AnimationCallback |
Abstract class for animation callback. Used to notify animation events.
Summary
Public constructors | |
---|---|
<init>() Abstract class for animation callback. |
Public methods | |
---|---|
open Unit |
onAnimationEnd(@NonNull drawable: SeekableAnimatedVectorDrawable) Called when the animation ends. |
open Unit |
onAnimationPause(@NonNull drawable: SeekableAnimatedVectorDrawable) Called when the animation is paused. |
open Unit |
onAnimationResume(@NonNull drawable: SeekableAnimatedVectorDrawable) Called when the animation is resumed. |
open Unit |
onAnimationStart(@NonNull drawable: SeekableAnimatedVectorDrawable) Called when the animation starts. |
open Unit |
onAnimationUpdate(@NonNull drawable: SeekableAnimatedVectorDrawable) Called on every frame while the animation is running. |
Public constructors
<init>
AnimationCallback()
Abstract class for animation callback. Used to notify animation events.
Public methods
onAnimationEnd
open fun onAnimationEnd(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit
Called when the animation ends.
Parameters | |
---|---|
drawable |
SeekableAnimatedVectorDrawable: The drawable finished the animation. |
onAnimationPause
open fun onAnimationPause(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit
Called when the animation is paused.
Parameters | |
---|---|
drawable |
SeekableAnimatedVectorDrawable: The drawable. |
onAnimationResume
open fun onAnimationResume(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit
Called when the animation is resumed.
Parameters | |
---|---|
drawable |
SeekableAnimatedVectorDrawable: The drawable. |
onAnimationStart
open fun onAnimationStart(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit
Called when the animation starts.
Parameters | |
---|---|
drawable |
SeekableAnimatedVectorDrawable: The drawable started the animation. |
onAnimationUpdate
open fun onAnimationUpdate(@NonNull drawable: SeekableAnimatedVectorDrawable): Unit
Called on every frame while the animation is running. The implementation must not register or unregister any AnimationCallback
here.
Parameters | |
---|---|
drawable |
SeekableAnimatedVectorDrawable: The drawable. |