Conforms to NSObject
Declared in SDWebImageManager.h

Tasks

Instance Methods

imageManager:shouldDownloadImageForURL:

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

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

Parameters

imageManager

The current SDWebImageManager

imageURL

The url of the image to be downloaded

Return Value

Return NO to prevent the downloading of the image on cache misses. If not implemented, YES is implied.

Declared In

SDWebImageManager.h

imageManager:transformDownloadedImage:withURL:

- (UIImage *)imageManager:(SDWebImageManager *)imageManager transformDownloadedImage:(UIImage *)image withURL:(NSURL *)imageURL
Discussion

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

imageManager

The current SDWebImageManager

image

The image to transform

imageURL

The url of the image to transform

Return Value

The transformed image object.

Declared In

SDWebImageManager.h