AnimationEndReason
-
Cmn
enum AnimationEndReason : Enum
Possible reasons for Animatables to end.
Summary
Enum Values |
|
|---|---|
BoundReached |
Animation will be forced to end when its value reaches upper/lower bound (if they have been defined, e.g. via |
Finished |
Animation has finished successfully without any interruption. |
Public functions |
||
|---|---|---|
AnimationEndReason |
Returns the enum constant of this type with the specified name. |
Cmn
|
Array<AnimationEndReason> |
values()Returns an array containing the constants of this enum type, in the order they're declared. |
Cmn
|
Public properties |
||
|---|---|---|
EnumEntries<AnimationEndReason> |
Returns an immutable |
Cmn
|
Enum Values
BoundReached
val AnimationEndReason.BoundReached: AnimationEndReason
Animation will be forced to end when its value reaches upper/lower bound (if they have been defined, e.g. via Animatable.updateBounds)
Unlike Finished, when an animation ends due to BoundReached, it often falls short from its initial target, and the remaining velocity is often non-zero. Both the end value and the remaining velocity can be obtained via AnimationResult.
Finished
val AnimationEndReason.Finished: AnimationEndReason
Animation has finished successfully without any interruption.
Public functions
valueOf
fun valueOf(value: String): AnimationEndReason
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if this enum type has no constant with the specified name |
values
fun values(): Array<AnimationEndReason>
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using entries property as a more efficient alternative returning an immutable list of enum entries.
Public properties
entries
val entries: EnumEntries<AnimationEndReason>
Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.