Animator
abstract class Animator : Cloneable
kotlin.Any | |
↳ | androidx.core.animation.Animator |
This is the superclass for classes which provide basic support for animations which can be started, ended, and have AnimatorListeners
added to them.
Summary
Nested classes | |
---|---|
abstract |
An animation listener receives notifications from an animation. |
abstract |
A pause listener receives notifications from an animation when the animation is |
abstract |
Implementors of this interface can add themselves as update listeners to an |
Constants | |
---|---|
static Long |
The value used to indicate infinite duration (e.g. when Animators repeat infinitely). |
Public constructors | |
---|---|
<init>() This is the superclass for classes which provide basic support for animations which can be started, ended, and have |
Public methods | |
---|---|
open Unit |
addListener(@NonNull listener: Animator.AnimatorListener) Adds a listener to the set of listeners that are sent events through the life of an animation, such as start, repeat, and end. |
open Unit |
addPauseListener(@NonNull listener: Animator.AnimatorPauseListener) Adds a pause listener to this animator. |
open Unit |
addUpdateListener(@NonNull listener: Animator.AnimatorUpdateListener) Adds a listener to the set of listeners that are sent update events through the life of an animation. |
open Unit |
cancel() Cancels the animation. |
open Animator |
clone() |
open Unit |
end() Ends the animation. |
abstract Long |
Gets the duration of the animation. |
open Interpolator? |
Returns the timing interpolator that this animation uses. |
abstract Long |
The amount of time, in milliseconds, to delay processing the animation after |
open Long |
Gets the total duration of the animation, accounting for animation sequences, start delay, and repeating. |
open Boolean |
isPaused() Returns whether this animator is currently in a paused state. |
abstract Boolean |
Returns whether this Animator is currently running (having been started and gone past any initial startDelay period and not yet ended). |
open Boolean |
Returns whether this Animator has been started and not yet ended. |
open Unit |
pause() Pauses a running animation. |
open Unit |
Removes all |
open Unit |
Removes all listeners from the set listening to frame updates for this animation. |
open Unit |
removeListener(@NonNull listener: Animator.AnimatorListener) Removes a listener from the set listening to this animation. |
open Unit |
removePauseListener(@NonNull listener: Animator.AnimatorPauseListener) Removes a pause listener from the set listening to this animation. |
open Unit |
removeUpdateListener(@NonNull listener: Animator.AnimatorUpdateListener) Removes a listener from the set listening to frame updates for this animation. |
open Unit |
resume() Resumes a paused animation, causing the animator to pick up where it left off when it was paused. |
abstract Animator |
setDuration(@IntRange(0) duration: Long) Sets the duration of the animation. |
abstract Unit |
setInterpolator(@Nullable value: Interpolator?) The interpolator used in calculating the elapsed fraction of the animation. |
abstract Unit |
setStartDelay(@IntRange(0) startDelay: Long) The amount of time, in milliseconds, to delay processing the animation after |
open Unit |
Sets the target object whose property will be animated by this animation. |
open Unit |
This method tells the object to use appropriate information to extract ending values for the animation. |
open Unit |
This method tells the object to use appropriate information to extract starting values for the animation. |
open Unit |
|