8package org.skia.jetski;
11 private long mNativeInstance;
17 mNativeInstance = nCreate(animation_json);
24 return nGetDuration(mNativeInstance);
32 return nGetFrameCount(mNativeInstance);
39 return nGetWidth(mNativeInstance);
46 return nGetHeight(mNativeInstance);
54 nSeekTime(mNativeInstance, t);
68 nSeekFrame(mNativeInstance,
f);
82 nRelease(mNativeInstance);
91 private static native
long nCreate(String json);
92 private static native
void nRelease(
long nativeInstance);
94 private static native
double nGetDuration(
long nativeInstance);
95 private static native
double nGetFrameCount(
long nativeInstance);
96 private static native
float nGetWidth(
long nativeInstance);
97 private static native
float nGetHeight(
long nativeInstance);
99 private static native
void nSeekTime(
long nativeInstance,
double t);
100 private static native
void nSeekFrame(
long nativeInstance,
double frame);
101 private static native
void nRender(
long nativeInstance,
long nativeCanvas);
SkottieAnimation(String animation_json)
void render(Canvas canvas)