2017-04-13 00:13:44 -04:00
|
|
|
#import <Foundation/Foundation.h>
|
2018-06-09 22:12:56 -04:00
|
|
|
#import <UIKit/UIKit.h>
|
2017-04-13 00:13:44 -04:00
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, FFFPriority) {
|
|
|
|
FFFPriorityLow,
|
|
|
|
FFFPriorityNormal,
|
|
|
|
FFFPriorityHigh
|
|
|
|
};
|
|
|
|
|
2018-06-13 23:47:10 -04:00
|
|
|
typedef NS_ENUM(NSInteger, FFFCacheControl) {
|
|
|
|
FFFCacheControlImmutable,
|
|
|
|
FFFCacheControlWeb,
|
|
|
|
FFFCacheControlCacheOnly
|
|
|
|
};
|
|
|
|
|
2018-06-09 22:12:56 -04:00
|
|
|
// Object containing an image uri and metadata.
|
2017-04-13 00:13:44 -04:00
|
|
|
@interface FFFastImageSource : NSObject
|
|
|
|
|
2018-06-09 22:12:56 -04:00
|
|
|
// uri for image, or base64
|
|
|
|
@property (nonatomic) NSURL* url;
|
|
|
|
// priority for image request
|
2017-04-13 00:13:44 -04:00
|
|
|
@property (nonatomic) FFFPriority priority;
|
2018-06-09 22:12:56 -04:00
|
|
|
// headers for the image request
|
2017-04-13 00:13:44 -04:00
|
|
|
@property (nonatomic) NSDictionary *headers;
|
2018-06-13 23:47:10 -04:00
|
|
|
// cache control mode
|
|
|
|
@property (nonatomic) FFFCacheControl cacheControl;
|
2017-04-13 00:13:44 -04:00
|
|
|
|
|
|
|
- (instancetype)initWithURL:(NSURL *)url
|
|
|
|
priority:(FFFPriority)priority
|
2018-06-13 23:47:10 -04:00
|
|
|
headers:(NSDictionary *)headers
|
|
|
|
cacheControl:(FFFCacheControl)cacheControl;
|
2017-04-13 00:13:44 -04:00
|
|
|
|
|
|
|
@end
|