Definition at line 31 of file SkottieActivity.java.
◆ onActivityResult()
void org.skia.skottie.SkottieActivity.onActivityResult |
( |
int |
requestCode, |
|
|
int |
resultCode, |
|
|
Intent |
data |
|
) |
| |
|
inlineprotected |
Definition at line 281 of file SkottieActivity.java.
281 {
282 super.onActivityResult(requestCode, resultCode, data);
283 if (resultCode == Activity.RESULT_OK) {
285
286 Uri uri =
data.getData();
287
288 try {
289 addLottie(uri);
290 } catch (FileNotFoundException e) {
292 }
293 }
294 }
295 }
static final int PICK_FILE_REQUEST
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
◆ onClick()
void org.skia.skottie.SkottieActivity.onClick |
( |
View |
view | ) |
|
|
inline |
Definition at line 253 of file SkottieActivity.java.
253 {
254 switch(view.getId()) {
255 case R.id.open_lottie:
256 Intent intent = new Intent();
257 intent.setType("application/json");
258 Intent i = Intent.createChooser(intent, "View Default File Manager");
260 break;
262 for (SkottieView anim : mAnimations) {
263 anim.play();
264 }
265 break;
267 for (SkottieView anim : mAnimations) {
268 anim.pause();
269 }
270 break;
272 for (SkottieView anim : mAnimations) {
273 anim.seek(0f);
274 }
275 break;
276 }
277
278 }
◆ onCreate()
void org.skia.skottie.SkottieActivity.onCreate |
( |
Bundle |
savedInstanceState | ) |
|
|
inlineprotected |
Definition at line 239 of file SkottieActivity.java.
239 {
240 super.onCreate(savedInstanceState);
241
242 createLayout();
243 }
◆ onDestroy()
void org.skia.skottie.SkottieActivity.onDestroy |
( |
| ) |
|
|
inlineprotected |
◆ onEnterAnimationComplete()
void org.skia.skottie.SkottieActivity.onEnterAnimationComplete |
( |
| ) |
|
|
inline |
Definition at line 209 of file SkottieActivity.java.
209 {
210 super.onEnterAnimationComplete();
211 mEnterAnimationFence.countDown();
212 }
◆ waitForEnterAnimationComplete()
void org.skia.skottie.SkottieActivity.waitForEnterAnimationComplete |
( |
| ) |
throws TimeoutException, InterruptedException |
|
inline |
Definition at line 214 of file SkottieActivity.java.
214 {
215 if (!mEnterAnimationFence.await(TIME_OUT_MS, TimeUnit.MILLISECONDS)) {
216 throw new TimeoutException();
217 }
218 }
◆ mInflatedIndex
int org.skia.skottie.SkottieActivity.mInflatedIndex = -1 |
|
staticpackage |
◆ PICK_FILE_REQUEST
final int org.skia.skottie.SkottieActivity.PICK_FILE_REQUEST = 2 |
|
staticpackage |
The documentation for this class was generated from the following file:
- third_party/skia/platform_tools/android/apps/skottie/src/main/java/org/skia/skottie/SkottieActivity.java