Declared in UIImageView+HighlightedWebCache.h

Overview

Integrates SDWebImage async downloading and caching of remote images with UIImageView for highlighted state.

Tasks

Instance Methods

sd_cancelCurrentHighlightedImageLoad

- (void)sd_cancelCurrentHighlightedImageLoad
Discussion

Cancel the current download

Declared In

UIImageView+HighlightedWebCache.h

sd_setHighlightedImageWithURL:

- (void)sd_setHighlightedImageWithURL:(NSURL *)url
Discussion

Set the imageView highlightedImage with an url.

The download is asynchronous and cached.

Parameters

url

The url for the image.

Declared In

UIImageView+HighlightedWebCache.h

sd_setHighlightedImageWithURL:completed:

- (void)sd_setHighlightedImageWithURL:(NSURL *)url completed:(SDWebImageCompletionBlock)completedBlock
Discussion

Set the imageView highlightedImage with an url.

The download is asynchronous and cached.

Parameters

url

The url for the image.

completedBlock

A block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. In case of error the image parameter is nil and the second parameter may contain an NSError. The third parameter is a Boolean indicating if the image was retrived from the local cache or from the network. The fourth parameter is the original image url.

Declared In

UIImageView+HighlightedWebCache.h

sd_setHighlightedImageWithURL:options:

- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options
Discussion

Set the imageView highlightedImage with an url and custom options.

The download is asynchronous and cached.

Parameters

url

The url for the image.

options

The options to use when downloading the image. @see SDWebImageOptions for the possible values.

Declared In

UIImageView+HighlightedWebCache.h

sd_setHighlightedImageWithURL:options:completed:

- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock
Discussion

Set the imageView highlightedImage with an url and custom options.

The download is asynchronous and cached.

Parameters

url

The url for the image.

options

The options to use when downloading the image. @see SDWebImageOptions for the possible values.

completedBlock

A block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. In case of error the image parameter is nil and the second parameter may contain an NSError. The third parameter is a Boolean indicating if the image was retrived from the local cache or from the network. The fourth parameter is the original image url.

Declared In

UIImageView+HighlightedWebCache.h

sd_setHighlightedImageWithURL:options:progress:completed:

- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock
Discussion

Set the imageView highlightedImage with an url and custom options.

The download is asynchronous and cached.

Parameters

url

The url for the image.

options

The options to use when downloading the image. @see SDWebImageOptions for the possible values.

progressBlock

A block called while image is downloading

completedBlock

A block called when operation has been completed. This block has no return value and takes the requested UIImage as first parameter. In case of error the image parameter is nil and the second parameter may contain an NSError. The third parameter is a Boolean indicating if the image was retrived from the local cache or from the network. The fourth parameter is the original image url.

Declared In

UIImageView+HighlightedWebCache.h