Linear Animation Instance
class LinearAnimationInstance(unsafeCppPointer: Long, lock: ReentrantLock, var mix: Float = 1.0f) : PlayableInstance, NativeObject
The LinearAnimationInstance is a helper to wrap common operations to play an animation.
Use this to keep track of an animation's current state and progress. You may also apply changes that the animation makes to components in an Artboard.
Parameters
unsafe Cpp Pointer
Pointer to the C++ counterpart.
Properties
Link copied to clipboard
Getter/Setter for the underlying C++ pointer value.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether this objects underlying pointer is still valid.
Link copied to clipboard
Configure the Loop mode for this animation. Can be either Loop.LOOP, Loop.ONESHOT, Loop.PINGPONG or Loop.AUTO.
Link copied to clipboard
Functions
Link copied to clipboard
Increments the references for this counter. Cannot be used for initialization - use refs.incrementAndGet instead.
Link copied to clipboard
Advance the animation and return the result.
Link copied to clipboard
Decrements the reference counter.