File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ typedef NS_ENUM(NSInteger, SDImageCacheType) {
2424 SDImageCacheTypeMemory
2525};
2626
27+ typedef void (^SDWebImageQueryCompletedBlock)(UIImage *image, SDImageCacheType cacheType);
28+
2729/* *
2830 * SDImageCache maintains a memory cache and an optional disk cache. Disk cache write operations are performed
2931 * asynchronous so it doesn’t add unnecessary latency to the UI.
@@ -102,7 +104,7 @@ typedef NS_ENUM(NSInteger, SDImageCacheType) {
102104 *
103105 * @param key The unique key used to store the wanted image
104106 */
105- - (NSOperation *)queryDiskCacheForKey : (NSString *)key done : (void (^)(UIImage *image, SDImageCacheType cacheType) )doneBlock ;
107+ - (NSOperation *)queryDiskCacheForKey : (NSString *)key done : (SDWebImageQueryCompletedBlock )doneBlock ;
106108
107109/* *
108110 * Query the memory cache synchronously.
You can’t perform that action at this time.
0 commit comments