123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #import <Foundation/Foundation.h>
- #import "SDWebImageCompat.h"
- #import "SDImageCoder.h"
- @interface SDAnimatedImagePlayer : NSObject
- @property (nonatomic, readonly, nullable) UIImage *currentFrame;
- @property (nonatomic, readonly) NSUInteger currentFrameIndex;
- @property (nonatomic, readonly) NSUInteger currentLoopCount;
- @property (nonatomic, assign) NSUInteger totalFrameCount;
- @property (nonatomic, assign) NSUInteger totalLoopCount;
- @property (nonatomic, assign) double playbackRate;
- @property (nonatomic, assign) NSUInteger maxBufferSize;
- @property (nonatomic, copy, nonnull) NSRunLoopMode runLoopMode;
- - (nullable instancetype)initWithProvider:(nonnull id<SDAnimatedImageProvider>)provider;
- + (nullable instancetype)playerWithProvider:(nonnull id<SDAnimatedImageProvider>)provider;
- @property (nonatomic, copy, nullable) void (^animationFrameHandler)(NSUInteger index, UIImage * _Nonnull frame);
- @property (nonatomic, copy, nullable) void (^animationLoopHandler)(NSUInteger loopCount);
- @property (nonatomic, readonly) BOOL isPlaying;
- - (void)startPlaying;
- - (void)pausePlaying;
- - (void)stopPlaying;
- - (void)seekToFrameAtIndex:(NSUInteger)index loopCount:(NSUInteger)loopCount;
- - (void)clearFrameBuffer;
- @end
|