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 287 of file SkottieActivity.java.
287 {
288 super.onActivityResult(requestCode, resultCode,
data);
289 if (resultCode == Activity.RESULT_OK) {
291
292 Uri uri =
data.getData();
293
294 try {
295 addLottie(uri);
296 }
catch (FileNotFoundException
e) {
298 }
299 }
300 }
301 }
static final int PICK_FILE_REQUEST
std::shared_ptr< const fml::Mapping > data
◆ onClick()
void org.skia.skottie.SkottieActivity.onClick |
( |
View |
view | ) |
|
|
inline |
Definition at line 259 of file SkottieActivity.java.
259 {
260 switch(view.getId()) {
261 case R.id.open_lottie:
262 Intent intent = new Intent();
263 intent.setType("application/json");
264 Intent
i = Intent.createChooser(intent,
"View Default File Manager");
266 break;
268 for (SkottieView anim : mAnimations) {
269 anim.play();
270 }
271 break;
273 for (SkottieView anim : mAnimations) {
274 anim.pause();
275 }
276 break;
278 for (SkottieView anim : mAnimations) {
280 }
281 break;
282 }
283
284 }
◆ onCreate()
void org.skia.skottie.SkottieActivity.onCreate |
( |
Bundle |
savedInstanceState | ) |
|
|
inlineprotected |
Definition at line 245 of file SkottieActivity.java.
245 {
246 super.onCreate(savedInstanceState);
247
248 createLayout();
249 }
◆ onDestroy()
void org.skia.skottie.SkottieActivity.onDestroy |
( |
| ) |
|
|
inlineprotected |
◆ onEnterAnimationComplete()
void org.skia.skottie.SkottieActivity.onEnterAnimationComplete |
( |
| ) |
|
|
inline |
Definition at line 215 of file SkottieActivity.java.
215 {
216 super.onEnterAnimationComplete();
217 mEnterAnimationFence.countDown();
218 }
◆ waitForEnterAnimationComplete()
void org.skia.skottie.SkottieActivity.waitForEnterAnimationComplete |
( |
| ) |
throws TimeoutException, InterruptedException |
|
inline |
Definition at line 220 of file SkottieActivity.java.
220 {
221 if (!mEnterAnimationFence.await(TIME_OUT_MS, TimeUnit.MILLISECONDS)) {
222 throw new TimeoutException();
223 }
224 }
◆ 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