|
134 | 134 | *
|
135 | 135 | * @param url The url for the image.
|
136 | 136 | * @param state The state that uses the specified title. The values are described in UIControlState.
|
137 |
| - * @param success A block to be executed when the image request succeed This block has no return value and takes the retrieved image as argument. |
138 |
| - * @param failure A block object to be executed when the image request failed. This block has no return value and takes the error object describing the network or parsing error that occurred (may be nil). |
| 137 | + * @param completedBlock A block object to be executed after the request operation |
| 138 | + * completed. This block has no return value and takes three argument: the requested |
| 139 | + * `UIImage` object, the `NSError` object describing error that occurred, and an |
| 140 | + * `SDImageCacheType` enum describing the source of the image obtained from. |
139 | 141 | */
|
140 | 142 | - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock;
|
141 | 143 |
|
|
147 | 149 | * @param url The url for the image.
|
148 | 150 | * @param state The state that uses the specified title. The values are described in UIControlState.
|
149 | 151 | * @param placeholder The image to be set initially, until the image request finishes.
|
150 |
| - * @param success A block to be executed when the image request succeed This block has no return value and takes the retrieved image as argument. |
151 |
| - * @param failure A block object to be executed when the image request failed. This block has no return value and takes the error object describing the network or parsing error that occurred (may be nil). |
| 152 | + * @param completedBlock A block object to be executed after the request operation |
| 153 | + * completed. This block has no return value and takes three argument: the requested |
| 154 | + * `UIImage` object, the `NSError` object describing error that occurred, and an |
| 155 | + * `SDImageCacheType` enum describing the source of the image obtained from. |
152 | 156 | */
|
153 | 157 | - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock;
|
154 | 158 |
|
|
160 | 164 | * @param url The url for the image.
|
161 | 165 | * @param placeholder The image to be set initially, until the image request finishes.
|
162 | 166 | * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
163 |
| - * @param success A block to be executed when the image request succeed This block has no return value and takes the retrieved image as argument. |
164 |
| - * @param failure A block object to be executed when the image request failed. This block has no return value and takes the error object describing the network or parsing error that occurred (may be nil). |
| 167 | + * @param completedBlock A block object to be executed after the request operation |
| 168 | + * completed. This block has no return value and takes three argument: the requested |
| 169 | + * `UIImage` object, the `NSError` object describing error that occurred, and an |
| 170 | + * `SDImageCacheType` enum describing the source of the image obtained from. |
165 | 171 | */
|
166 | 172 | - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock;
|
167 | 173 |
|
|
0 commit comments