Files
RETableViewManager/RETableViewManagerExample/Pods/Documentation/SDWebImage/docset/Contents/Resources/Tokens10.xml
2013-04-02 10:02:19 -05:00

60 lines
2.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Tokens version="1.0">
<File path="Protocols/SDWebImageManagerDelegate.html">
<Token>
<TokenIdentifier>//apple_ref/occ/intf/SDWebImageManagerDelegate</TokenIdentifier>
<Abstract type="html">Even if the image is cached, respect the HTTP response cache control, and refresh the image from remote location if needed.
The disk caching will be handled by NSURLCache instead of SDWebImage leading to slight performance degradation.
This option helps deal with images changing behind the same request URL, e.g. Facebook graph api profile pics.
If a cached image is refreshed, the completion block is called once with the cached image and again with the final image.</Abstract>
<DeclaredIn>SDWebImageManager.h</DeclaredIn>
<NodeRef refid="10"/>
</Token>
<Token>
<TokenIdentifier>//apple_ref/occ/intfm/SDWebImageManagerDelegate/imageManager:shouldDownloadImageForURL:</TokenIdentifier>
<Abstract type="html">Controls which image should be downloaded when the image is not found in the cache.</Abstract>
<DeclaredIn>SDWebImageManager.h</DeclaredIn>
<Declaration>- (BOOL)imageManager:(SDWebImageManager *)imageManager shouldDownloadImageForURL:(NSURL *)imageURL</Declaration>
<Parameters>
<Parameter>
<Name>imageManager</Name>
<Abstract type="html">The current SDWebImageManager</Abstract>
</Parameter><Parameter>
<Name>imageURL</Name>
<Abstract type="html">The url of the image to be downloaded</Abstract>
</Parameter>
</Parameters>
<ReturnValue><Abstract type="html">Return NO to prevent the downloading of the image on cache misses. If not implemented, YES is implied.</Abstract></ReturnValue>
<Anchor>//api/name/imageManager:shouldDownloadImageForURL:</Anchor>
</Token>
<Token>
<TokenIdentifier>//apple_ref/occ/intfm/SDWebImageManagerDelegate/imageManager:transformDownloadedImage:withURL:</TokenIdentifier>
<Abstract type="html">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.</Abstract>
<DeclaredIn>SDWebImageManager.h</DeclaredIn>
<Declaration>- (UIImage *)imageManager:(SDWebImageManager *)imageManager transformDownloadedImage:(UIImage *)image withURL:(NSURL *)imageURL</Declaration>
<Parameters>
<Parameter>
<Name>imageManager</Name>
<Abstract type="html">The current SDWebImageManager</Abstract>
</Parameter><Parameter>
<Name>image</Name>
<Abstract type="html">The image to transform</Abstract>
</Parameter><Parameter>
<Name>imageURL</Name>
<Abstract type="html">The url of the image to transform</Abstract>
</Parameter>
</Parameters>
<ReturnValue><Abstract type="html">The transformed image object.</Abstract></ReturnValue>
<Anchor>//api/name/imageManager:transformDownloadedImage:withURL:</Anchor>
</Token>
</File>
</Tokens>