AnimationIterator

interface AnimationIterator<T : Timed?> : Iterator<T>

An iterator for traversing animation keyframes.

This interface supports different looping modes (play once, loop, hold on last) and allows resetting the iteration state.

Since

1.15.2

Parameters

<T>

the type of keyframe (must implement Timed)

Inheritors

Types

Link copied to clipboard
Implementation for HOLD_ON_LAST.
Link copied to clipboard
Implementation for LOOP.
Link copied to clipboard
Implementation for PLAY_ONCE.
Link copied to clipboard
enum Type
Defines the behavior of the animation iterator.

Functions

Link copied to clipboard
abstract fun clear()
Resets the iterator to its initial state.
Link copied to clipboard
open fun forEachRemaining(action: Consumer<in E>)
Link copied to clipboard
abstract fun hasNext(): Boolean
Link copied to clipboard
abstract fun next(): E
Link copied to clipboard
open fun remove()
Link copied to clipboard
@NotNull
abstract fun type(): @NotNull AnimationIterator.Type
Returns the type of this animation iterator.