API reference

PlaybackType

PlaybackType

enum PlaybackType : Enum<PlaybackType>
Playback type of the animation. This is used to determine how the animation is played.

Entries

NameSummary
LOOP

Restarts the animation at the beginning when it finishes
CLAMP

Plays animation once and then freezes at last keyframe
BOUNCE

Starts playing animation forward and then in reverse when it finishes
REVERSE_LOOP

Plays animation in reverse forever

Properties

NameSummary
name
val name: String
ordinal
val ordinal: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): PlaybackType

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.)
values
fun values(): Array<PlaybackType>

Returns an array containing the constants of this enum type, in the order they’re declared.