FWImageDownloader
@interface FWImageDownloader : NSObject
图片下载器,默认解码scale为1,同SDWebImage
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, nullable) id <FWImageRequestCache> imageCache
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong) FWHTTPSessionManager *sessionManager
-
Undocumented
Declaration
Objective-C
@property (nonatomic) FWImageDownloadPrioritization downloadPrioritization
-
Undocumented
Declaration
Objective-C
@property (class, nonatomic, strong) FWImageDownloader *sharedDownloader
-
Undocumented
Declaration
Objective-C
+ (instancetype)defaultInstance;
-
Undocumented
Declaration
Objective-C
+ (NSURLCache *)defaultURLCache;
-
Undocumented
Declaration
Objective-C
+ (NSURLSessionConfiguration *)defaultURLSessionConfiguration;
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithSessionManager:(FWHTTPSessionManager *)sessionManager downloadPrioritization:(FWImageDownloadPrioritization)downloadPrioritization maximumActiveDownloads:(NSInteger)maximumActiveDownloads imageCache:(nullable id <FWImageRequestCache>)imageCache;
-
Undocumented
Declaration
Objective-C
- (nullable FWImageDownloadReceipt *)downloadImageForURL:(nullable id)url options:(FWWebImageOptions)options context:(nullable NSDictionary<FWImageCoderOptions, id> *)context success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *responseObject))success failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure progress:(nullable void (^)(NSProgress *downloadProgress))progress;
-
Undocumented
Declaration
Objective-C
- (nullable FWImageDownloadReceipt *)downloadImageForURL:(nullable id)url withReceiptID:(NSUUID *)receiptID options:(FWWebImageOptions)options context:(nullable NSDictionary<FWImageCoderOptions, id> *)context success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *responseObject))success failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure progress:(nullable void (^)(NSProgress *downloadProgress))progress;
-
Undocumented
Declaration
Objective-C
- (void)cancelTaskForImageDownloadReceipt:(FWImageDownloadReceipt *)imageDownloadReceipt;
-
Undocumented
Declaration
Objective-C
- (nullable NSURL *)imageURLForObject:(id)object;
-
Undocumented
Declaration
Objective-C
- (void)downloadImageForObject:(id)object imageURL:(nullable id)imageURL options:(FWWebImageOptions)options context:(nullable NSDictionary<FWImageCoderOptions, id> *)context placeholder:(nullable void (^)(void))placeholder completion:(nullable void (^)(UIImage * _Nullable image, BOOL isCache, NSError * _Nullable error))completion progress:(nullable void (^)(double progress))progress;
-
Undocumented
Declaration
Objective-C
- (void)cancelImageDownloadTask:(id)object;