LuxChat  2.0
Instant messenger for iOS
Instance Methods | List of all members
<SDWebImageManagerDelegate> Protocol Reference
Inheritance diagram for <SDWebImageManagerDelegate>:

Instance Methods

(BOOL) - imageManager:shouldDownloadImageForURL:
 
(UIImage *) - imageManager:transformDownloadedImage:withURL:
 

Method Documentation

- (BOOL) imageManager: (SDWebImageManager *)  imageManager
shouldDownloadImageForURL: (NSURL *)  imageURL 
optional

Controls which image should be downloaded when the image is not found in the cache.

Parameters
imageManagerThe current SDWebImageManager
imageURLThe url of the image to be downloaded
Returns
Return NO to prevent the downloading of the image on cache misses. If not implemented, YES is implied.
- (UIImage *) imageManager: (SDWebImageManager *)  imageManager
transformDownloadedImage: (UIImage *)  image
withURL: (NSURL *)  imageURL 
optional

Allows to transform the image immediately after it has been downloaded and just before to cache it on disk and memory. NOTE: This method is called from a global queue in order to not to block the main thread.

Parameters
imageManagerThe current SDWebImageManager
imageThe image to transform
imageURLThe url of the image to transform
Returns
The transformed image object.

The documentation for this protocol was generated from the following file: