@@ -438,8 +438,8 @@ typedef void(^PINRemoteImageManagerProgressDownload)(int64_t completedBytes, int
438438
439439 @param data NSData with the raw image data.
440440 @param url NSURL where the image resides.
441- @processorKey NSString key to uniquely identify processor and process. Will be used for caching processed images.
442- @additionalCost NSUInteger the additional cost (for cache eviction purposes) to generate the processed image
441+ @param processorKey NSString key to uniquely identify processor and process. Will be used for caching processed images.
442+ @param additionalCost NSUInteger the additional cost (for cache eviction purposes) to generate the processed image
443443
444444 @return A BOOL indicating if the image was successfully added to the cache.
445445 */
@@ -460,7 +460,7 @@ typedef void(^PINRemoteImageManagerProgressDownload)(int64_t completedBytes, int
460460- (nonnull NSString *)cacheKeyForURL : (nonnull NSURL *)url processorKey : (nullable NSString *)processorKey ;
461461
462462/* *
463- @see imageFromCacheWithCacheKey: options:completion: instead
463+ @see imageFromCacheWithURL:processorKey: options:completion:
464464 @deprecated
465465
466466 @param cacheKey NSString key to look up image in the cache.
@@ -469,25 +469,46 @@ typedef void(^PINRemoteImageManagerProgressDownload)(int64_t completedBytes, int
469469- (void )imageFromCacheWithCacheKey : (nonnull NSString *)cacheKey completion : (nonnull PINRemoteImageManagerImageCompletion)completion __attribute__((deprecated));
470470
471471/* *
472- Directly get an image from the underlying cache.
473- @see cacheKeyForURL:processorKey:
472+ @see imageFromCacheWithURL:processorKey:options:completion:
473+ @deprecated
474474
475475 @param cacheKey NSString key to look up image in the cache.
476476 @param options options will be used to determine if the cached image should be decompressed or FLAnimatedImages should be returned.
477477 @param completion PINRemoteImageManagerImageCompletion block to call when image has been fetched from the cache.
478478 */
479- - (void )imageFromCacheWithCacheKey : (nonnull NSString *)cacheKey options : (PINRemoteImageManagerDownloadOptions)options completion : (nonnull PINRemoteImageManagerImageCompletion)completion ;
479+ - (void )imageFromCacheWithCacheKey : (nonnull NSString *)cacheKey options : (PINRemoteImageManagerDownloadOptions)options completion : (nonnull PINRemoteImageManagerImageCompletion)completion __attribute__((deprecated)) ;
480480
481481/* *
482- Directly get an image from the underlying memory cache synchronously.
483- @see cacheKeyForURL:processorKey:
482+ Directly get an image from the underlying cache.
483+
484+ @param url NSURL to look up image in the cache.
485+ @param processorKey NSString key to uniquely identify processor and process.
486+ @param options options will be used to determine if the cached image should be decompressed or FLAnimatedImages should be returned.
487+ @param completion PINRemoteImageManagerImageCompletion block to call when image has been fetched from the cache.
488+ */
489+ - (void )imageFromCacheWithURL : (nonnull NSURL *)url processorKey : (nullable NSString *)processorKey options : (PINRemoteImageManagerDownloadOptions)options completion : (nonnull PINRemoteImageManagerImageCompletion)completion ;
490+
491+ /* *
492+ @deprecated
493+ @see synchronousImageFromCacheWithURL:processorKey:options:
484494
485495 @param cacheKey NSString key to look up image in the cache.
486496 @param options options will be used to determine if the cached image should be decompressed or FLAnimatedImages should be returned.
487497
488498 @return A PINRemoteImageManagerResult
489499 */
490- - (nonnull PINRemoteImageManagerResult *)synchronousImageFromCacheWithCacheKey : (nonnull NSString *)cacheKey options : (PINRemoteImageManagerDownloadOptions)options ;
500+ - (nonnull PINRemoteImageManagerResult *)synchronousImageFromCacheWithCacheKey : (nonnull NSString *)cacheKey options : (PINRemoteImageManagerDownloadOptions)options __attribute__((deprecated));
501+
502+ /* *
503+ Directly get an image from the underlying memory cache synchronously.
504+
505+ @param url NSURL to look up image in the cache.
506+ @param processorKey NSString key to uniquely identify processor and process
507+ @param options options will be used to determine if the cached image should be decompressed or FLAnimatedImages should be returned.
508+
509+ @return A PINRemoteImageManagerResult
510+ */
511+ - (nonnull PINRemoteImageManagerResult *)synchronousImageFromCacheWithURL : (nonnull NSURL *)url processorKey : (nullable NSString *)processorKey options : (PINRemoteImageManagerDownloadOptions)options ;
491512
492513/* *
493514 Cancel a download. Canceling will only cancel the download if all other downloads are also canceled with their associated UUIDs. Canceling *does not* guarantee that your completion will not be called. You can use the UUID provided on the result object verify the completion you want called is being called.
0 commit comments