//apple_ref/occ/intf/PINRemoteImageCategory

Protocol to implement on UIView subclasses to support PINRemoteImage

PINRemoteImageCategoryManager.h

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURL:

Set the image from the given URL.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURL:(nullable NSURL *)url `url

NSURL to fetch from.

` //api/name/pin_setImageFromURL:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURL:placeholderImage:

Set the image from the given URL and set placeholder image while image at URL is being retrieved.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURL:(nullable NSURL *)url placeholderImage:(nullable PINImage *)placeholderImage `url

NSURL to fetch from.

` `placeholderImage

PINImage to set on the view while the image at URL is being retrieved.

` //api/name/pin_setImageFromURL:placeholderImage:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURL:completion:

Set the image from the given URL and call completion when finished.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURL:(nullable NSURL *)url completion:(nullable PINRemoteImageManagerImageCompletion)completion `url

NSURL to fetch from.

` `completion

Called when url has been retrieved and set on view.

` //api/name/pin_setImageFromURL:completion:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURL:placeholderImage:completion:

Set the image from the given URL, set placeholder while image at url is being retrieved and call completion when finished.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURL:(nullable NSURL *)url placeholderImage:(nullable PINImage *)placeholderImage completion:(nullable PINRemoteImageManagerImageCompletion)completion `url

NSURL to fetch from.

` `placeholderImage

PINImage to set on the view while the image at URL is being retrieved.

` `completion

Called when url has been retrieved and set on view.

` //api/name/pin_setImageFromURL:placeholderImage:completion:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURL:processorKey:processor:

Retrieve the image from the given URL, process it using the passed in processor block and set result on view.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURL:(nullable NSURL *)url processorKey:(nullable NSString *)processorKey processor:(nullable PINRemoteImageManagerImageProcessor)processor `url

NSURL to fetch from.

` `processorKey

NSString key to uniquely identify processor. Used in caching.

` `processor

PINRemoteImageManagerImageProcessor processor block which should return the processed image.

` //api/name/pin_setImageFromURL:processorKey:processor:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURL:placeholderImage: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.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURL:(nullable NSURL *)url placeholderImage:(nullable PINImage *)placeholderImage processorKey:(nullable NSString *)processorKey processor:(nullable PINRemoteImageManagerImageProcessor)processor `url

NSURL to fetch from.

` `placeholderImage

PINImage to set on the view while the image at URL is being retrieved.

` `processorKey

NSString key to uniquely identify processor. Used in caching.

` `processor

PINRemoteImageManagerImageProcessor processor block which should return the processed image.

` //api/name/pin_setImageFromURL:placeholderImage:processorKey:processor:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURL:processorKey:processor:completion:

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.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURL:(nullable NSURL *)url processorKey:(nullable NSString *)processorKey processor:(nullable PINRemoteImageManagerImageProcessor)processor completion:(nullable PINRemoteImageManagerImageCompletion)completion `url

NSURL to fetch from.

` `processorKey

NSString key to uniquely identify processor. Used in caching.

` `processor

PINRemoteImageManagerImageProcessor processor block which should return the processed image.

` `completion

Called when url has been retrieved and set on view.

` //api/name/pin_setImageFromURL:processorKey:processor:completion:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURL:placeholderImage:processorKey:processor: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.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURL:(nullable NSURL *)url placeholderImage:(nullable PINImage *)placeholderImage processorKey:(nullable NSString *)processorKey processor:(nullable PINRemoteImageManagerImageProcessor)processor completion:(nullable PINRemoteImageManagerImageCompletion)completion `url

NSURL to fetch from.

` `placeholderImage

PINImage to set on the view while the image at URL is being retrieved.

` `processorKey

NSString key to uniquely identify processor. Used in caching.

` `processor

PINRemoteImageManagerImageProcessor processor block which should return the processed image.

` `completion

Called when url has been retrieved and set on view.

` //api/name/pin_setImageFromURL:placeholderImage:processorKey:processor:completion:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURLs:

Retrieve one of the images at the passed in URLs depending on previous network performance and set result on view.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURLs:(nullable NSArray<NSURL*> *)urls `urls

NSArray of NSURLs sorted in increasing quality

` //api/name/pin_setImageFromURLs:

//apple_ref/occ/intfm/PINRemoteImageCategory/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.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURLs:(nullable NSArray<NSURL*> *)urls placeholderImage:(nullable PINImage *)placeholderImage `urls

NSArray of NSURLs sorted in increasing quality

` `placeholderImage

PINImage to set on the view while the image at URL is being retrieved.

` //api/name/pin_setImageFromURLs:placeholderImage:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setImageFromURLs:placeholderImage:completion:

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.

PINRemoteImageCategoryManager.h - (void)pin_setImageFromURLs:(nullable NSArray<NSURL*> *)urls placeholderImage:(nullable PINImage *)placeholderImage completion:(nullable PINRemoteImageManagerImageCompletion)completion `urls

NSArray of NSURLs sorted in increasing quality

` `placeholderImage

PINImage to set on the view while the image at URL is being retrieved.

` `completion

Called when url has been retrieved and set on view.

` //api/name/pin_setImageFromURLs:placeholderImage:completion:

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_cancelImageDownload

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).

PINRemoteImageCategoryManager.h - (void)pin_cancelImageDownload //api/name/pin_cancelImageDownload

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_downloadImageOperationUUID

Returns the NSUUID associated with any PINRemoteImage task currently running on the view.

PINRemoteImageCategoryManager.h - (nullable NSUUID *)pin_downloadImageOperationUUID

NSUUID associated with any PINRemoteImage task currently running on the view.

//api/name/pin_downloadImageOperationUUID

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_setDownloadImageOperationUUID:

Set the current NSUUID associated with a PINRemoteImage task running on the view.

PINRemoteImageCategoryManager.h - (void)pin_setDownloadImageOperationUUID:(nullable NSUUID *)downloadImageOperationUUID `downloadImageOperationUUID

NSUUID associated with a PINRemoteImage task.

` //api/name/pin_setDownloadImageOperationUUID:

//apple_ref/occ/intfm/PINRemoteImageCategory/setPin_updateWithProgress:

Whether the view should update with progress images (such as those provided by progressive JPEG images).

PINRemoteImageCategoryManager.h @property (nonatomic, assign) BOOL pin_updateWithProgress

BOOL value indicating whether the view should update with progress images

//api/name/pin_updateWithProgress

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_updateWithProgress

Whether the view should update with progress images (such as those provided by progressive JPEG images).

PINRemoteImageCategoryManager.h @property (nonatomic, assign) BOOL pin_updateWithProgress

BOOL value indicating whether the view should update with progress images

//api/name/pin_updateWithProgress

//apple_ref/occ/intfp/PINRemoteImageCategory/pin_updateWithProgress

Whether the view should update with progress images (such as those provided by progressive JPEG images).

PINRemoteImageCategoryManager.h @property (nonatomic, assign) BOOL pin_updateWithProgress

BOOL value indicating whether the view should update with progress images

//api/name/pin_updateWithProgress

//apple_ref/occ/intfm/PINRemoteImageCategory/pin_updateUIWithRemoteImageManagerResult:

If you implement this method, it is called instead of pin_updateUIWithImage:animatedImage:

PINRemoteImageCategoryManager.h - (void)pin_updateUIWithRemoteImageManagerResult:(nonnull PINRemoteImageManagerResult *)result `result

A PINRemoteImageManagerResult

` //api/name/pin_updateUIWithRemoteImageManagerResult: