Edit

Animation.TryParse(String, Animation) Method

Definition

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.

Applies to