Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SkottieAnimation (String animation_json) | |
double | getDuration () |
double | getFrameCount () |
float | getWidth () |
float | getHeight () |
void | seekTime (double t) |
void | seekFrame (double f) |
void | render (Canvas canvas) |
void | release () |
Protected Member Functions | |
void | finalize () throws Throwable |
Definition at line 10 of file SkottieAnimation.java.
|
inline |
Create an animation from the provided JSON string.
Definition at line 16 of file SkottieAnimation.java.
|
inlineprotected |
Definition at line 87 of file SkottieAnimation.java.
|
inline |
Returns the animation duration in seconds.
Definition at line 23 of file SkottieAnimation.java.
|
inline |
Returns the animation frame count. This is normally an integral value, but both the JSON encoding and Skottie's frame-based APIs support fractional frames.
Definition at line 31 of file SkottieAnimation.java.
|
inline |
Returns the intrinsic animation height.
Definition at line 45 of file SkottieAnimation.java.
|
inline |
Returns the intrinsic animation width.
Definition at line 38 of file SkottieAnimation.java.
|
inline |
Releases any resources associated with this Animation.
Definition at line 81 of file SkottieAnimation.java.
|
inline |
Draw the current frame to the Canvas.
Definition at line 74 of file SkottieAnimation.java.
|
inline |
Update the animation state to match |f|, specified as a frame index in the [0..frameCount) domain.
Fractional values are allowed and meaningful - e.g.
0.0 -> first frame 1.0 -> second frame 0.5 -> halfway between first and second frame
Definition at line 67 of file SkottieAnimation.java.
|
inline |
Update the animation state to match |t|, specifed in seconds. The input is clamped to [0..duration).
Definition at line 53 of file SkottieAnimation.java.