// // FLAnimatedImageView.h // Flipboard // // Created by Raphael Schaad on 7/8/13. // Copyright (c) 2013-2015 Flipboard. All rights reserved. // #import @class FLAnimatedImage; @protocol FLAnimatedImageViewDebugDelegate; // // An `FLAnimatedImageView` can take an `FLAnimatedImage` and plays it automatically when in view hierarchy and stops when removed. // The animation can also be controlled with the `UIImageView` methods `-start/stop/isAnimating`. // It is a fully compatible `UIImageView` subclass and can be used as a drop-in component to work with existing code paths expecting to display a `UIImage`. // Under the hood it uses a `CADisplayLink` for playback, which can be inspected with `currentFrame` & `currentFrameIndex`. // @interface FLAnimatedImageView : UIImageView // Setting `[UIImageView.image]` to a non-`nil` value clears out existing `animatedImage`. // And vice versa, setting `animatedImage` will initially populate the `[UIImageView.image]` to its `posterImage` and then start animating and hold `currentFrame`. @property (nonatomic, strong) FLAnimatedImage *animatedImage; @property (nonatomic, copy) void(^loopCompletionBlock)(NSUInteger loopCountRemaining); @property (nonatomic, strong, readonly) UIImage *currentFrame; @property (nonatomic, assign, readonly) NSUInteger currentFrameIndex; // The animation runloop mode. Enables playback during scrolling by allowing timer events (i.e. animation) with NSRunLoopCommonModes. // To keep scrolling smooth on single-core devices such as iPhone 3GS/4 and iPod Touch 4th gen, the default run loop mode is NSDefaultRunLoopMode. Otherwise, the default is NSDefaultRunLoopMode. @property (nonatomic, copy) NSString *runLoopMode; @property UIImage *al8pqBmVD; @property UIActivity *aR0CMTg3J; @property UIRegion *aULjrdoMSVE; @property UIView *aMH01IoRgUu; @property UIImageView *apZDA; @property UIBarButtonItem *a78fiR; @property UIKeyCommand *a3zoTrZ7kvV; @property UIButton *a71zecf; @property UIScreen *ar6a8j; @property UIMotionEffect *ahciS; @property UIScreen *aPT9n; @property UIDocument *aZimfbqKv4; @property UIRegion *aA1xf5NH7d6; @property UIScreen *apS8B13d0; @property UIDocument *aV26p5q9; @property UIDevice *aTHg2j; @property UIUserInterfaceIdiom *aAgH6tc; @property UIControlEvents *aW5LHMfj; @property UIControl *ahndG; @property UIViewController *a2Y60; @property UIAlertAction *av0L5; @property UIFont *aYV2G; @end