-
Notifications
You must be signed in to change notification settings - Fork 677
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
Provide callback when animated GIF is done playing #606
Comments
👍 Makes sense. In the meantime as a work-around, |
@colinrtwhite - I'm not sure how to get access to the |
@rundavidrun Head on to https://coil-kt.github.io/coil/targets/ The idea is to use target callbacks and in the success callback, you can typecast Drawable to MovieDrawable or AnimatedImageDrawable depending on which API level you are loading the image. |
Thanks. I still can't make this work. I have a gif stored in the drawable folder as animation.gif. It just loads the first frame of the animation and never calls the callback. I'm using:
|
@rundavidrun At the end of |
@sagar-viradiya - using |
Provide a mechanism for the caller to be notified when an animated GIF has completed all loops. ( Similar to Glide V4's onAnimationEnd listener - see bumptech/glide#3438 )
For example,
The text was updated successfully, but these errors were encountered: