SkiaSharp.Extended
SkiaSharp.Extended copied to clipboard
[FEATURE] Show reason why animation failed
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
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.