|
@@ -21,7 +21,7 @@ |
|
@@ -21,7 +21,7 @@ |
21
|
*
|
21
|
*
|
22
|
* @param url The url for the image.
|
22
|
* @param url The url for the image.
|
23
|
*/
|
23
|
*/
|
24
|
-- (void)setHighlightedImageWithURL:(NSURL *)url;
|
24
|
+- (void)loadHighlightedImageWithURL:(NSURL *)url;
|
25
|
|
25
|
|
26
|
/**
|
26
|
/**
|
27
|
* Set the imageView `highlightedImage` with an `url` and custom options.
|
27
|
* Set the imageView `highlightedImage` with an `url` and custom options.
|
|
@@ -31,7 +31,7 @@ |
|
@@ -31,7 +31,7 @@ |
31
|
* @param url The url for the image.
|
31
|
* @param url The url for the image.
|
32
|
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
32
|
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
33
|
*/
|
33
|
*/
|
34
|
-- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options;
|
34
|
+- (void)loadHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options;
|
35
|
|
35
|
|
36
|
/**
|
36
|
/**
|
37
|
* Set the imageView `highlightedImage` with an `url`.
|
37
|
* Set the imageView `highlightedImage` with an `url`.
|
|
@@ -39,12 +39,13 @@ |
|
@@ -39,12 +39,13 @@ |
39
|
* The downloand is asynchronous and cached.
|
39
|
* The downloand is asynchronous and cached.
|
40
|
*
|
40
|
*
|
41
|
* @param url The url for the image.
|
41
|
* @param url The url for the image.
|
42
|
- * @param completedBlock A block called when operation has been completed. This block as no return value
|
42
|
+ * @param completedBlock A block called when operation has been completed. This block has no return value
|
43
|
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
43
|
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
44
|
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
44
|
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
45
|
* indicating if the image was retrived from the local cache of from the network.
|
45
|
* indicating if the image was retrived from the local cache of from the network.
|
|
|
46
|
+ * The forth parameter is the original image url.
|
46
|
*/
|
47
|
*/
|
47
|
-- (void)setHighlightedImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock;
|
48
|
+- (void)loadHighlightedImageWithURL:(NSURL *)url completed:(SDWebImageCompletionBlock)completedBlock;
|
48
|
|
49
|
|
49
|
/**
|
50
|
/**
|
50
|
* Set the imageView `highlightedImage` with an `url` and custom options.
|
51
|
* Set the imageView `highlightedImage` with an `url` and custom options.
|
|
@@ -53,12 +54,13 @@ |
|
@@ -53,12 +54,13 @@ |
53
|
*
|
54
|
*
|
54
|
* @param url The url for the image.
|
55
|
* @param url The url for the image.
|
55
|
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
56
|
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
56
|
- * @param completedBlock A block called when operation has been completed. This block as no return value
|
57
|
+ * @param completedBlock A block called when operation has been completed. This block has no return value
|
57
|
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
58
|
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
58
|
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
59
|
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
59
|
* indicating if the image was retrived from the local cache of from the network.
|
60
|
* indicating if the image was retrived from the local cache of from the network.
|
|
|
61
|
+ * The forth parameter is the original image url.
|
60
|
*/
|
62
|
*/
|
61
|
-- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock;
|
63
|
+- (void)loadHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;
|
62
|
|
64
|
|
63
|
/**
|
65
|
/**
|
64
|
* Set the imageView `highlightedImage` with an `url` and custom options.
|
66
|
* Set the imageView `highlightedImage` with an `url` and custom options.
|
|
@@ -68,12 +70,24 @@ |
|
@@ -68,12 +70,24 @@ |
68
|
* @param url The url for the image.
|
70
|
* @param url The url for the image.
|
69
|
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
71
|
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
70
|
* @param progressBlock A block called while image is downloading
|
72
|
* @param progressBlock A block called while image is downloading
|
71
|
- * @param completedBlock A block called when operation has been completed. This block as no return value
|
73
|
+ * @param completedBlock A block called when operation has been completed. This block has no return value
|
72
|
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
74
|
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
73
|
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
75
|
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
74
|
* indicating if the image was retrived from the local cache of from the network.
|
76
|
* indicating if the image was retrived from the local cache of from the network.
|
|
|
77
|
+ * The forth parameter is the original image url.
|
75
|
*/
|
78
|
*/
|
76
|
-- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock;
|
79
|
+- (void)loadHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock;
|
77
|
|
80
|
|
|
|
81
|
+@end
|
|
|
82
|
+
|
|
|
83
|
+
|
|
|
84
|
+@interface UIImageView (HighlightedWebCacheDeprecated)
|
|
|
85
|
+
|
|
|
86
|
+- (void)setHighlightedImageWithURL:(NSURL *)url __deprecated_msg("Method deprecated. Use `loadHighlightedImageWithURL:`");
|
|
|
87
|
+- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options __deprecated_msg("Method deprecated. Use `loadHighlightedImageWithURL:options:`");
|
|
|
88
|
+
|
|
|
89
|
+- (void)setHighlightedImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg("Method deprecated. Use `loadHighlightedImageWithURL:completed:`");
|
|
|
90
|
+- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg("Method deprecated. Use `loadHighlightedImageWithURL:options:completed:`");
|
|
|
91
|
+- (void)setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg("Method deprecated. Use `loadHighlightedImageWithURL:options:progress:completed:`");
|
78
|
|
92
|
|
79
|
@end |
93
|
@end |