AWFImageAnimationDataSource

Objective-C

@protocol AWFImageAnimationDataSource <AWFAnimationDataSource>

Swift

protocol AWFImageAnimationDataSource : AWFAnimationDataSource

The AWFImageAnimationDataSource is adopted by an object that provides the necessary data for an image-based overlay to complete its animation.

  • Asks the data source to return the array of images to use for the animation (required). *

    Declaration

    Objective-C

    - (nullable NSArray<UIImage *> *)imagesForAnimation:
        (nonnull AWFAnimation *)animation;

    Swift

    func images(for animation: AWFAnimation) -> [UIImage]?

    Parameters

    animation

    An object representing the animation requesting the data. *

    Return Value

    An array of images to animate.

  • Tells the data source to start loading image data required for the animation.

    Declaration

    Objective-C

    - (void)loadImagesForAnimation;

    Swift

    func loadImagesForAnimation()