AWFImageAnimationDelegate
Objective-C
@protocol AWFImageAnimationDelegate <AWFAnimationDelegate>
Swift
protocol AWFImageAnimationDelegate : AWFAnimationDelegate
The AWFImageAnimationDelegate protocol defines a set of optional methods that can be used to be notified when the image
animation data changes.
-
Tells the delegate that an image frame has loaded for the animation at the specified interval. *
Declaration
Objective-C
- (void)animation:(nonnull AWFImageAnimation *)animation didLoadImage:(nonnull UIImage *)image forInterval:(NSInteger)interval;Swift
optional func animation(_ animation: AWFImageAnimation, didLoad image: UIImage, forInterval interval: Int)Parameters
animationThe animation the image belongs to
imageThe image that was loaded
intervalThe frame interval of the image
View on GitHub
AWFImageAnimationDelegate Protocol Reference