mono / SkiaSharp.Extended

SkiaSharp is a cross-platform, comprehensive 2D graphics API for all .NET platforms. And, here is where you will find all sorts of extras that you can use with it.
https://mono.github.io/SkiaSharp.Extended
MIT License
218 stars 69 forks source link

Add AnimationFinished event to SKLottieView #209

Closed mattleibow closed 10 months ago

mattleibow commented 10 months ago

Description of Change

This PR adds an AnimationCompleted event to SKLottieView to indicate when the animation is no longer playing.

This event fires after the IsComplete is set to true and thus means that it only fires after all the repeats are finished. So an infinite repeating animation will never be complete nor will the event fire. But for a X repeat (including 0 repeats) animation, the event will fire after all the repeats have happened.

Bugs Fixed

API Changes

Added:

class SKLottieView {
    event EventHandler AnimationCompleted;
}

Behavioral Changes

PR Checklist