SkiaSharp.Extended icon indicating copy to clipboard operation
SkiaSharp.Extended copied to clipboard

[FEATURE] Show reason why animation failed

Open albilaga opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. We have event SKLottieView.AnimationFailed but we always show EventArgs.Empty in here. Better if user can know the reason why their lottie file is failed to load

Describe the solution you'd like

AnimationFailed event should have reason why they are failed. Maybe event args with exception emitted?

Describe alternatives you've considered

Maybe we can also just add Console.Writeline() but I think it is better if we have reason animation failed emitted from AnimationFailed event

albilaga avatar Jun 27 '23 10:06 albilaga

I added some basic reasons in the new event args in the form of any caught exceptions: https://github.com/mono/SkiaSharp.Extended/pull/268

In a skia update, there is a new builder type with far more info.

mattleibow avatar Apr 08 '24 09:04 mattleibow