| | |
| | | @property (nonatomic, strong, nullable, readwrite) NSURL *url; |
| | | @property (nonatomic, strong, nullable, readwrite) NSURLRequest *request; |
| | | @property (nonatomic, strong, nullable, readwrite) NSURLResponse *response; |
| | | @property (nonatomic, strong, nullable, readwrite) NSURLSessionTaskMetrics *metrics API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)); |
| | | @property (nonatomic, strong, nullable, readwrite) NSURLSessionTaskMetrics *metrics API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0)); |
| | | @property (nonatomic, weak, nullable, readwrite) id downloadOperationCancelToken; |
| | | @property (nonatomic, weak, nullable) NSOperation<SDWebImageDownloaderOperation> *downloadOperation; |
| | | @property (nonatomic, assign, getter=isCancelled) BOOL cancelled; |
| | |
| | | } |
| | | } |
| | | |
| | | - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics *)metrics API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) { |
| | | - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics *)metrics API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0)) { |
| | | |
| | | // Identify the operation that runs this task and pass it the delegate method |
| | | NSOperation<SDWebImageDownloaderOperation> *dataOperation = [self operationWithTask:task]; |