Do we have a callback to identify when fallback to mainThread rendering happens ? #1893
-
Which Version of Lottie are you using?Lottie 4.0.1 QuestionWith new But for lotties which are being fetched at runtime from cloud, whats the best practice. Do we have some call back which gives that the given lottie is being fall back to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'd say the best-practice is to rely on |
Beta Was this translation helpful? Give feedback.
I'd say the best-practice is to rely on
RenderingEngineOption.automatic
to automatically handle displaying the remote animation using the best rendering engine for that specific animation..automatic
comes with some initial setup overhead but not enough to worry about imo unless you have a very performance-sensitive use case. Otherwise you would have to do something like store a mapping between asset URLs and the rendering engine you'd like to use when displaying that animation.