@@ -122,7 +122,7 @@ FOUNDATION_EXPORT void SDSetDecodeOptionsToContext(SDWebImageMutableContext * _N
122
122
imageData : (nullable NSData *)imageData
123
123
forKey : (nullable NSString *)key
124
124
cacheType : (SDImageCacheType)cacheType
125
- completion : (nullable SDWebImageNoParamsBlock)completionBlock API_DEPRECATED_WITH_REPLACEMENT(" storeImage:imageData:forKey:options:context:cacheType:completion:" , macos(10.10 , API_TO_BE_DEPRECATED), ios(8.0 , API_TO_BE_DEPRECATED), tvos(9.0 , API_TO_BE_DEPRECATED), watchos(2.0 , API_TO_BE_DEPRECATED));;
125
+ completion : (nullable SDWebImageNoParamsBlock)completionBlock API_DEPRECATED_WITH_REPLACEMENT(" storeImage:imageData:forKey:options:context:cacheType:completion:" , macos(10.10 , API_TO_BE_DEPRECATED), ios(8.0 , API_TO_BE_DEPRECATED), tvos(9.0 , API_TO_BE_DEPRECATED), watchos(2.0 , API_TO_BE_DEPRECATED));
126
126
127
127
@optional
128
128
/* *
@@ -144,7 +144,7 @@ FOUNDATION_EXPORT void SDSetDecodeOptionsToContext(SDWebImageMutableContext * _N
144
144
cacheType : (SDImageCacheType)cacheType
145
145
completion : (nullable SDWebImageNoParamsBlock)completionBlock ;
146
146
147
- @required
147
+ # pragma mark - Deprecated because SDWebImageManager does not use these APIs
148
148
/* *
149
149
Remove the image from image cache for the given key. If cache type is memory only, completion is called synchronously, else asynchronously.
150
150
@@ -154,7 +154,7 @@ FOUNDATION_EXPORT void SDSetDecodeOptionsToContext(SDWebImageMutableContext * _N
154
154
*/
155
155
- (void )removeImageForKey : (nullable NSString *)key
156
156
cacheType : (SDImageCacheType)cacheType
157
- completion : (nullable SDWebImageNoParamsBlock)completionBlock ;
157
+ completion : (nullable SDWebImageNoParamsBlock)completionBlock API_DEPRECATED( " No longer use. Cast to cache instance and call its API " , macos( 10.10 , API_TO_BE_DEPRECATED), ios( 8.0 , API_TO_BE_DEPRECATED), tvos( 9.0 , API_TO_BE_DEPRECATED), watchos( 2.0 , API_TO_BE_DEPRECATED)) ;
158
158
159
159
/* *
160
160
Check if image cache contains the image for the given key (does not load the image). If image is cached in memory, completion is called synchronously, else asynchronously.
@@ -165,7 +165,7 @@ FOUNDATION_EXPORT void SDSetDecodeOptionsToContext(SDWebImageMutableContext * _N
165
165
*/
166
166
- (void )containsImageForKey : (nullable NSString *)key
167
167
cacheType : (SDImageCacheType)cacheType
168
- completion : (nullable SDImageCacheContainsCompletionBlock)completionBlock ;
168
+ completion : (nullable SDImageCacheContainsCompletionBlock)completionBlock API_DEPRECATED( " No longer use. Cast to cache instance and call its API " , macos( 10.10 , API_TO_BE_DEPRECATED), ios( 8.0 , API_TO_BE_DEPRECATED), tvos( 9.0 , API_TO_BE_DEPRECATED), watchos( 2.0 , API_TO_BE_DEPRECATED)) ;
169
169
170
170
/* *
171
171
Clear all the cached images for image cache. If cache type is memory only, completion is called synchronously, else asynchronously.
@@ -174,6 +174,6 @@ FOUNDATION_EXPORT void SDSetDecodeOptionsToContext(SDWebImageMutableContext * _N
174
174
@param completionBlock A block executed after the operation is finished
175
175
*/
176
176
- (void )clearWithCacheType : (SDImageCacheType)cacheType
177
- completion : (nullable SDWebImageNoParamsBlock)completionBlock ;
177
+ completion : (nullable SDWebImageNoParamsBlock)completionBlock API_DEPRECATED( " No longer use. Cast to cache instance and call its API " , macos( 10.10 , API_TO_BE_DEPRECATED), ios( 8.0 , API_TO_BE_DEPRECATED), tvos( 9.0 , API_TO_BE_DEPRECATED), watchos( 2.0 , API_TO_BE_DEPRECATED)) ;
178
178
179
179
@end
0 commit comments