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

    animation

    The animation the image belongs to

    image

    The image that was loaded

    interval

    The frame interval of the image