Get the Picture object that contains the animation content The Picture is owned by the Animation and should not be manually disposed
Gets the WASM pointer for this object Returns 0 if object has been disposed (error handled by global handler)
Check if this object has been disposed
Protected_Cleanup function to be implemented by subclasses
The WASM pointer to clean up
Load Lottie animation from raw data
Lottie JSON data as Uint8Array or string
Get animation information (frames, duration, fps)
Get or set the current frame
Get or set the current frame
Set the playback segment (for partial playback)
Segment begin frame
Segment end frame
Play the animation
OptionalonFrame: (frame: number) => void
Optional callback called on each frame update
Pause the animation
Stop the animation and reset to frame 0
Check if animation is currently playing
Set whether animation should loop
Get loop status
Seek to a specific time (in seconds)
Get current time (in seconds)
Manually dispose of this animation and free its WASM memory
Animation controller for Lottie animations The Animation owns a Picture internally and manages frame updates
Example
Example
Example
See
LottieAnimation for Lottie advanced features