AnimationKeyframe

Stores the ordered animation progresses for a keyframe timeline.


AnimationKeyframe keyframe = new AnimationKeyframe(new AnimationProgress[0]);
int count = keyframe.size();

Since

3.7.0

Parameters

progresses

the ordered animation progresses

Constructors

Link copied to clipboard
constructor()

Companion functions

Link copied to clipboard
@NotNull
open fun build(@NotNull position: @NotNull List<KeyframePoint>, @NotNull rotation: @NotNull List<KeyframePoint>, @NotNull scale: @NotNull List<KeyframePoint>, rotationGlobal: Boolean, @NotNull points: @NotNull FloatSortedSet): @NotNull AnimationKeyframe
Builds a timeline by sampling the transform channels at the supplied points.
Link copied to clipboard
@NotNull
open fun <T : Timed?> listOf(@NotNull list: @NotNull List<T>): @NotNull TimedStorage<T>
Creates a TimedStorage backed by a List.

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
@NotNull
open fun get(i: Int): @NotNull AnimationProgress
Returns the progress at the specified index.
Link copied to clipboard
@NotNull
open fun getLast(): @NotNull AnimationProgress
Returns the last progress.
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun size(): Int
Returns the number of progresses.
Link copied to clipboard
@NotNull
open fun toEmpty(): @NotNull TimedStorage<AnimationProgress>
Returns a timeline containing an empty equivalent of each progress.
Link copied to clipboard
abstract fun toString(): String