mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-05-19 19:39:28 +08:00
Remove deprecated methods in preperation for 2.0
This commit is contained in:
@@ -16,12 +16,3 @@
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
@interface NSData (PINImageDetectors_Deprecated)
|
||||
|
||||
- (BOOL)isGIF __attribute((deprecated("use pin_isGIF")));
|
||||
#ifdef PIN_WEBP
|
||||
- (BOOL)isWebP __attribute((deprecated("use pin_isWebP")));
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
@@ -41,19 +41,3 @@
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSData (PINImageDetectors_Deprecated)
|
||||
|
||||
- (BOOL)isGIF
|
||||
{
|
||||
return [self pin_isGIF];
|
||||
}
|
||||
|
||||
#ifdef PIN_WEBP
|
||||
- (BOOL)isWebP
|
||||
{
|
||||
return [self pin_isWebP];
|
||||
}
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
@@ -39,11 +39,3 @@ NSData * __nullable PINImagePNGRepresentation(PINImage * __nonnull image);
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
@interface PINImage (PINDecodedImage_Deprecated)
|
||||
|
||||
+ (nullable PINImage *)decodedImageWithData:(nullable NSData *)data __attribute((deprecated("use pin_decodedImageWithData:")));
|
||||
+ (nullable PINImage *)decodedImageWithData:(nullable NSData *)data skipDecodeIfPossible:(BOOL)skipDecodeIfPossible __attribute((deprecated("use pin_decodedImageWithData:skipDecodeIfPossible:")));
|
||||
+ (nullable PINImage *)decodedImageWithCGImageRef:(nullable CGImageRef)imageRef __attribute((deprecated("use pin_decodedImageWithCGImageRef:")));
|
||||
|
||||
@end
|
||||
|
||||
@@ -228,22 +228,3 @@ UIImageOrientation pin_UIImageOrienationFromImageSource(CGImageSourceRef imageSo
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
@implementation PINImage (PINDecodedImage_Deprecated)
|
||||
|
||||
+ (PINImage *)decodedImageWithData:(NSData *)data
|
||||
{
|
||||
return [self pin_decodedImageWithData:data];
|
||||
}
|
||||
|
||||
+ (PINImage *)decodedImageWithData:(NSData *)data skipDecodeIfPossible:(BOOL)skipDecodeIfPossible
|
||||
{
|
||||
return [self pin_decodedImageWithData:data skipDecodeIfPossible:skipDecodeIfPossible];
|
||||
}
|
||||
|
||||
+ (PINImage *)decodedImageWithCGImageRef:(CGImageRef)imageRef
|
||||
{
|
||||
return [self pin_decodedImageWithCGImageRef:imageRef];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -22,9 +22,4 @@
|
||||
|
||||
@end
|
||||
|
||||
@interface PINImage (PINWebP_Deprecated)
|
||||
|
||||
+ (PINImage *)imageWithWebPData:(NSData *)webPData __attribute((deprecated("use pin_imageWithWebPData:")));
|
||||
|
||||
@end
|
||||
#endif
|
||||
|
||||
@@ -83,12 +83,4 @@ static void releaseData(void *info, const void *data, size_t size)
|
||||
|
||||
@end
|
||||
|
||||
@implementation PINImage (PINWebP_Deprecated)
|
||||
|
||||
+ (PINImage *)imageWithWebPData:(NSData *)webPData
|
||||
{
|
||||
return [self pin_imageWithWebPData:webPData];
|
||||
}
|
||||
|
||||
@end
|
||||
#endif
|
||||
|
||||
@@ -16,7 +16,4 @@
|
||||
|
||||
@end
|
||||
|
||||
@interface FLAnimatedImageView (PINRemoteImage_Deprecated) <PINRemoteImageCategory_Deprecated>
|
||||
|
||||
@end
|
||||
#endif
|
||||
@@ -121,108 +121,4 @@
|
||||
|
||||
@end
|
||||
|
||||
@implementation FLAnimatedImageView (PINRemoteImage_Deprecated)
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url
|
||||
{
|
||||
[self pin_setImageFromURL:url];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url completion:completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage completion:completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor
|
||||
{
|
||||
[self pin_setImageFromURL:url processorKey:processorKey processor:processor];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage processorKey:processorKey processor:processor];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url processorKey:processorKey processor:processor completion: completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage processorKey:processorKey processor:processor completion:completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURLs:(NSArray *)urls
|
||||
{
|
||||
[self pin_setImageFromURLs:urls];
|
||||
}
|
||||
|
||||
- (void)setImageFromURLs:(NSArray *)urls placeholderImage:(UIImage *)placeholderImage
|
||||
{
|
||||
[self pin_setImageFromURLs:urls placeholderImage:placeholderImage];
|
||||
}
|
||||
|
||||
- (void)setImageFromURLs:(NSArray *)urls placeholderImage:(UIImage *)placeholderImage completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURLs:urls placeholderImage:placeholderImage completion:completion];
|
||||
}
|
||||
|
||||
- (void)cancelImageDownload
|
||||
{
|
||||
[self pin_cancelImageDownload];
|
||||
}
|
||||
|
||||
- (NSUUID *)downloadImageOperationUUID
|
||||
{
|
||||
return [self pin_downloadImageOperationUUID];
|
||||
}
|
||||
|
||||
- (void)setDownloadImageOperationUUID:(NSUUID *)downloadImageOperationUUID
|
||||
{
|
||||
[self pin_setDownloadImageOperationUUID:downloadImageOperationUUID];
|
||||
}
|
||||
|
||||
- (BOOL)updateWithProgress
|
||||
{
|
||||
return [self pin_updateWithProgress];
|
||||
}
|
||||
|
||||
- (void)setUpdateWithProgress:(BOOL)updateWithProgress
|
||||
{
|
||||
self.pin_updateWithProgress = updateWithProgress;
|
||||
}
|
||||
|
||||
- (void)setPlaceholderWithImage:(UIImage *)image
|
||||
{
|
||||
[self pin_setPlaceholderWithImage:image];
|
||||
}
|
||||
|
||||
- (void)updateUIWithImage:(UIImage *)image animatedImage:(FLAnimatedImage *)animatedImage
|
||||
{
|
||||
[self pin_updateUIWithImage:image animatedImage:animatedImage];
|
||||
}
|
||||
|
||||
- (void)clearImages
|
||||
{
|
||||
[self pin_clearImages];
|
||||
}
|
||||
|
||||
- (BOOL)ignoreGIFs
|
||||
{
|
||||
return [self pin_ignoreGIFs];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -18,7 +18,3 @@
|
||||
@interface PINButton (PINRemoteImage) <PINRemoteImageCategory>
|
||||
|
||||
@end
|
||||
|
||||
@interface PINButton (PINRemoteImage_Deprecated) <PINRemoteImageCategory_Deprecated>
|
||||
|
||||
@end
|
||||
@@ -129,107 +129,3 @@
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation PINButton (PINRemoteImage_Deprecated)
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url
|
||||
{
|
||||
[self pin_setImageFromURL:url];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(PINImage *)placeholderImage
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url completion:completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(PINImage *)placeholderImage completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage completion:completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor
|
||||
{
|
||||
[self pin_setImageFromURL:url processorKey:processorKey processor:processor];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(PINImage *)placeholderImage processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage processorKey:processorKey processor:processor];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url processorKey:processorKey processor:processor completion: completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(PINImage *)placeholderImage processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage processorKey:processorKey processor:processor completion:completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURLs:(NSArray <NSURL *> *)urls
|
||||
{
|
||||
[self pin_setImageFromURLs:urls];
|
||||
}
|
||||
|
||||
- (void)setImageFromURLs:(NSArray <NSURL *> *)urls placeholderImage:(PINImage *)placeholderImage
|
||||
{
|
||||
[self pin_setImageFromURLs:urls placeholderImage:placeholderImage];
|
||||
}
|
||||
|
||||
- (void)setImageFromURLs:(NSArray <NSURL *> *)urls placeholderImage:(PINImage *)placeholderImage completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURLs:urls placeholderImage:placeholderImage completion:completion];
|
||||
}
|
||||
|
||||
- (void)cancelImageDownload
|
||||
{
|
||||
[self pin_cancelImageDownload];
|
||||
}
|
||||
|
||||
- (NSUUID *)downloadImageOperationUUID
|
||||
{
|
||||
return [self pin_downloadImageOperationUUID];
|
||||
}
|
||||
|
||||
- (void)setDownloadImageOperationUUID:(NSUUID *)downloadImageOperationUUID
|
||||
{
|
||||
[self pin_setDownloadImageOperationUUID:downloadImageOperationUUID];
|
||||
}
|
||||
|
||||
- (BOOL)updateWithProgress
|
||||
{
|
||||
return [self pin_updateWithProgress];
|
||||
}
|
||||
|
||||
- (void)setUpdateWithProgress:(BOOL)updateWithProgress
|
||||
{
|
||||
self.pin_updateWithProgress = updateWithProgress;
|
||||
}
|
||||
|
||||
- (void)setPlaceholderWithImage:(PINImage *)image
|
||||
{
|
||||
[self pin_setPlaceholderWithImage:image];
|
||||
}
|
||||
|
||||
- (void)updateUIWithImage:(PINImage *)image animatedImage:(FLAnimatedImage *)animatedImage
|
||||
{
|
||||
[self pin_updateUIWithImage:image animatedImage:animatedImage];
|
||||
}
|
||||
|
||||
- (void)clearImages
|
||||
{
|
||||
[self pin_clearImages];
|
||||
}
|
||||
|
||||
- (BOOL)ignoreGIFs
|
||||
{
|
||||
return [self pin_ignoreGIFs];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -18,7 +18,3 @@
|
||||
@interface PINImageView (PINRemoteImage) <PINRemoteImageCategory>
|
||||
|
||||
@end
|
||||
|
||||
@interface PINImageView (PINRemoteImage_Deprecated) <PINRemoteImageCategory_Deprecated>
|
||||
|
||||
@end
|
||||
|
||||
@@ -125,107 +125,3 @@
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation PINImageView (PINRemoteImage_Deprecated)
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url
|
||||
{
|
||||
[self pin_setImageFromURL:url];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(PINImage *)placeholderImage
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url completion:completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(PINImage *)placeholderImage completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage completion:completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor
|
||||
{
|
||||
[self pin_setImageFromURL:url processorKey:processorKey processor:processor];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(PINImage *)placeholderImage processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage processorKey:processorKey processor:processor];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url processorKey:processorKey processor:processor completion: completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURL:(NSURL *)url placeholderImage:(PINImage *)placeholderImage processorKey:(NSString *)processorKey processor:(PINRemoteImageManagerImageProcessor)processor completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURL:url placeholderImage:placeholderImage processorKey:processorKey processor:processor completion:completion];
|
||||
}
|
||||
|
||||
- (void)setImageFromURLs:(NSArray <NSURL *> *)urls
|
||||
{
|
||||
[self pin_setImageFromURLs:urls];
|
||||
}
|
||||
|
||||
- (void)setImageFromURLs:(NSArray <NSURL *> *)urls placeholderImage:(PINImage *)placeholderImage
|
||||
{
|
||||
[self pin_setImageFromURLs:urls placeholderImage:placeholderImage];
|
||||
}
|
||||
|
||||
- (void)setImageFromURLs:(NSArray <NSURL *> *)urls placeholderImage:(PINImage *)placeholderImage completion:(PINRemoteImageManagerImageCompletion)completion
|
||||
{
|
||||
[self pin_setImageFromURLs:urls placeholderImage:placeholderImage completion:completion];
|
||||
}
|
||||
|
||||
- (void)cancelImageDownload
|
||||
{
|
||||
[self pin_cancelImageDownload];
|
||||
}
|
||||
|
||||
- (NSUUID *)downloadImageOperationUUID
|
||||
{
|
||||
return [self pin_downloadImageOperationUUID];
|
||||
}
|
||||
|
||||
- (void)setDownloadImageOperationUUID:(NSUUID *)downloadImageOperationUUID
|
||||
{
|
||||
[self pin_setDownloadImageOperationUUID:downloadImageOperationUUID];
|
||||
}
|
||||
|
||||
- (BOOL)updateWithProgress
|
||||
{
|
||||
return [self pin_updateWithProgress];
|
||||
}
|
||||
|
||||
- (void)setUpdateWithProgress:(BOOL)updateWithProgress
|
||||
{
|
||||
self.pin_updateWithProgress = updateWithProgress;
|
||||
}
|
||||
|
||||
- (void)setPlaceholderWithImage:(PINImage *)image
|
||||
{
|
||||
[self pin_setPlaceholderWithImage:image];
|
||||
}
|
||||
|
||||
- (void)updateUIWithImage:(PINImage *)image animatedImage:(FLAnimatedImage *)animatedImage
|
||||
{
|
||||
[self pin_updateUIWithImage:image animatedImage:animatedImage];
|
||||
}
|
||||
|
||||
- (void)clearImages
|
||||
{
|
||||
[self pin_clearImages];
|
||||
}
|
||||
|
||||
- (BOOL)ignoreGIFs
|
||||
{
|
||||
return [self pin_ignoreGIFs];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -231,140 +231,3 @@
|
||||
- (PINRemoteImageManagerDownloadOptions)pin_defaultOptions;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
Deprecated version of protocol to implement on UIView subclasses to support PINRemoteImage
|
||||
*/
|
||||
@protocol PINRemoteImageCategory_Deprecated <NSObject>
|
||||
|
||||
//Call manager
|
||||
|
||||
/**
|
||||
Set the image from the given URL.
|
||||
|
||||
@param url NSURL to fetch from.
|
||||
*/
|
||||
- (void)setImageFromURL:(nullable NSURL *)url __attribute((deprecated("use pin_setImageFromURL:")));
|
||||
|
||||
/**
|
||||
Set the image from the given URL and set placeholder image while image at URL is being retrieved.
|
||||
|
||||
@param url NSURL to fetch from.
|
||||
@param placeholderImage PINImage to set on the view while the image at URL is being retrieved.
|
||||
*/
|
||||
- (void)setImageFromURL:(nullable NSURL *)url placeholderImage:(nullable PINImage *)placeholderImage __attribute((deprecated("use pin_setImageFromURL:placeholderImage:")));
|
||||
|
||||
/**
|
||||
Set the image from the given URL and call completion when finished.
|
||||
|
||||
@param url NSURL to fetch from.
|
||||
@param completion Called when url has been retrieved and set on view.
|
||||
*/
|
||||
- (void)setImageFromURL:(nullable NSURL *)url completion:(nullable PINRemoteImageManagerImageCompletion)completion __attribute((deprecated("use pin_setImageFromURL:completion:")));
|
||||
|
||||
/**
|
||||
Set the image from the given URL, set placeholder while image at url is being retrieved and call completion when finished.
|
||||
|
||||
@param url NSURL to fetch from.
|
||||
@param placeholderImage PINImage to set on the view while the image at URL is being retrieved.
|
||||
@param completion Called when url has been retrieved and set on view.
|
||||
*/
|
||||
- (void)setImageFromURL:(nullable NSURL *)url placeholderImage:(nullable PINImage *)placeholderImage completion:(nullable PINRemoteImageManagerImageCompletion)completion __attribute((deprecated("use pin_setImageFromURL:placeholderImage:completion:")));
|
||||
|
||||
/**
|
||||
Retrieve the image from the given URL, process it using the passed in processor block and set result on view.
|
||||
|
||||
@param url NSURL to fetch from.
|
||||
@param processorKey NSString key to uniquely identify processor. Used in caching.
|
||||
@param processor PINRemoteImageManagerImageProcessor processor block which should return the processed image.
|
||||
*/
|
||||
- (void)setImageFromURL:(nullable NSURL *)url processorKey:(nullable NSString *)processorKey processor:(nullable PINRemoteImageManagerImageProcessor)processor __attribute((deprecated("use pin_setImageFromURL:processorKey:processor:")));
|
||||
|
||||
/**
|
||||
Set placeholder on view and retrieve the image from the given URL, process it using the passed in processor block and set result on view.
|
||||
|
||||
@param url NSURL to fetch from.
|
||||
@param placeholderImage PINImage to set on the view while the image at URL is being retrieved.
|
||||
@param processorKey NSString key to uniquely identify processor. Used in caching.
|
||||
@param processor PINRemoteImageManagerImageProcessor processor block which should return the processed image.
|
||||
*/
|
||||
- (void)setImageFromURL:(nullable NSURL *)url placeholderImage:(nullable PINImage *)placeholderImage processorKey:(nullable NSString *)processorKey processor:(nullable PINRemoteImageManagerImageProcessor)processor __attribute((deprecated("use pin_setImageFromURL:placeholderImage:processorKey:processor:")));
|
||||
|
||||
/**
|
||||
Retrieve the image from the given URL, process it using the passed in processor block and set result on view. Call completion after image has been fetched, processed and set on view.
|
||||
|
||||
@param url NSURL to fetch from.
|
||||
@param processorKey NSString key to uniquely identify processor. Used in caching.
|
||||
@param processor PINRemoteImageManagerImageProcessor processor block which should return the processed image.
|
||||
@param completion Called when url has been retrieved and set on view.
|
||||
*/
|
||||
- (void)setImageFromURL:(nullable NSURL *)url processorKey:(nullable NSString *)processorKey processor:(nullable PINRemoteImageManagerImageProcessor)processor completion:(nullable PINRemoteImageManagerImageCompletion)completion __attribute((deprecated("use pin_completion:")));
|
||||
|
||||
/**
|
||||
Set placeholder on view and retrieve the image from the given URL, process it using the passed in processor block and set result on view. Call completion after image has been fetched, processed and set on view.
|
||||
|
||||
@param url NSURL to fetch from.
|
||||
@param placeholderImage PINImage to set on the view while the image at URL is being retrieved.
|
||||
@param processorKey NSString key to uniquely identify processor. Used in caching.
|
||||
@param processor PINRemoteImageManagerImageProcessor processor block which should return the processed image.
|
||||
@param completion Called when url has been retrieved and set on view.
|
||||
*/
|
||||
- (void)setImageFromURL:(nullable NSURL *)url placeholderImage:(nullable PINImage *)placeholderImage processorKey:(nullable NSString *)processorKey processor:(nullable PINRemoteImageManagerImageProcessor)processor completion:(nullable PINRemoteImageManagerImageCompletion)completion __attribute((deprecated("use pin_completion:")));
|
||||
|
||||
/**
|
||||
Retrieve one of the images at the passed in URLs depending on previous network performance and set result on view.
|
||||
|
||||
@param urls NSArray of NSURLs sorted in increasing quality
|
||||
*/
|
||||
- (void)setImageFromURLs:(nullable NSArray <NSURL *> *)urls __attribute((deprecated("use pin_setImageFromURLs:")));
|
||||
|
||||
/**
|
||||
Set placeholder on view and retrieve one of the images at the passed in URLs depending on previous network performance and set result on view.
|
||||
|
||||
@param urls NSArray of NSURLs sorted in increasing quality
|
||||
@param placeholderImage PINImage to set on the view while the image at URL is being retrieved.
|
||||
*/
|
||||
- (void)setImageFromURLs:(nullable NSArray <NSURL *> *)urls placeholderImage:(nullable PINImage *)placeholderImage __attribute((deprecated("use pin_setImageFromURLs:placeholderImage:")));
|
||||
|
||||
/**
|
||||
Set placeholder on view and retrieve one of the images at the passed in URLs depending on previous network performance and set result on view. Call completion after image has been fetched and set on view.
|
||||
|
||||
@param urls NSArray of NSURLs sorted in increasing quality
|
||||
@param placeholderImage PINImage to set on the view while the image at URL is being retrieved.
|
||||
@param completion Called when url has been retrieved and set on view.
|
||||
*/
|
||||
- (void)setImageFromURLs:(nullable NSArray <NSURL *> *)urls placeholderImage:(nullable PINImage *)placeholderImage completion:(nullable PINRemoteImageManagerImageCompletion)completion __attribute((deprecated("use pin_setImageFromURLs:(NSArray *)urls placeholderImage:completion:")));
|
||||
|
||||
/**
|
||||
Cancels the image download. Guarantees that previous setImage calls will *not* have their results set on the image view after calling this (as opposed to PINRemoteImageManager which does not guarantee cancellation).
|
||||
*/
|
||||
- (void)cancelImageDownload __attribute((deprecated("use pin_cancelImageDownload")));
|
||||
|
||||
/**
|
||||
Returns the NSUUID associated with any PINRemoteImage task currently running on the view.
|
||||
|
||||
@return NSUUID associated with any PINRemoteImage task currently running on the view.
|
||||
*/
|
||||
- (nullable NSUUID *)downloadImageOperationUUID __attribute((deprecated("use pin_downloadImageOperationUUID")));
|
||||
|
||||
/**
|
||||
Set the current NSUUID associated with a PINRemoteImage task running on the view.
|
||||
|
||||
@param downloadImageOperationUUID NSUUID associated with a PINRemoteImage task.
|
||||
*/
|
||||
- (void)setDownloadImageOperationUUID:(nullable NSUUID *)downloadImageOperationUUID __attribute((deprecated("use pin_setDownloadImageOperationUUID:")));
|
||||
|
||||
/**
|
||||
Whether the view should update with progress images (such as those provided by progressive JPEG images).
|
||||
|
||||
@return BOOL value indicating whether the view should update with progress images
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL updateWithProgress __attribute((deprecated("use pin_@property (nonatomic, assign) BOOL updateWithProgress")));
|
||||
|
||||
//Handle
|
||||
- (void)setPlaceholderWithImage:(nullable PINImage *)image __attribute((deprecated("use pin_setPlaceholderWithImage:")));
|
||||
- (void)updateUIWithImage:(nullable PINImage *)image animatedImage:(nullable FLAnimatedImage *)animatedImage __attribute((deprecated("use pin_updateUIWithImage:animatedImage:")));
|
||||
- (void)clearImages __attribute((deprecated("use pin_clearImages")));
|
||||
- (BOOL)ignoreGIFs __attribute((deprecated("use pin_ignoreGIFs")));
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user