Animation.TryParse(String, Animation) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to parse an animation from a Lottie JSON string.
public static bool TryParse(string json, out SkiaSharp.Skottie.Animation? animation);
Parameters
- json
- String
A string containing the Lottie animation JSON.
- animation
- Animation
When this method returns, contains the animation, or null if the parsing failed.
Returns
true if the animation was parsed successfully; otherwise, false.
Remarks
Use the Builder helper for more options and control over the loading process.