Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AnimationFinished event to SKLottieView #209

Merged
merged 3 commits into from
Sep 1, 2023
Merged

Conversation

mattleibow
Copy link
Contributor

@mattleibow mattleibow commented Sep 1, 2023

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

  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Updated documentation

@mattleibow mattleibow merged commit 8b5d7bd into main Sep 1, 2023
3 checks passed
@mattleibow mattleibow deleted the dev/anim-finished branch September 1, 2023 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FinishedAnimation equivalent for Lottie animations
1 participant