mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 21:41:45 +00:00
Fix nullability of ASImageDownloaderProtocol to conform to ASBasicImageDownloader behavior
This commit is contained in:
parent
38706d0962
commit
ba9a742999
@ -43,13 +43,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
@param completion The block to be invoked when the download has completed, or has failed.
|
@param completion The block to be invoked when the download has completed, or has failed.
|
||||||
@param image The image that was downloaded, if the image could be successfully downloaded; nil otherwise.
|
@param image The image that was downloaded, if the image could be successfully downloaded; nil otherwise.
|
||||||
@param error An error describing why the download of `URL` failed, if the download failed; nil otherwise.
|
@param error An error describing why the download of `URL` failed, if the download failed; nil otherwise.
|
||||||
@discussion If `URL` is nil, `completion` will be invoked immediately with a nil image and an error describing why the
|
@discussion This method is likely to be called on the main thread, so any custom implementations should make sure to background any expensive download operations.
|
||||||
download failed. This method is likely to be called on the main thread, so any custom implementations should make
|
|
||||||
sure to background any expensive download operations.
|
|
||||||
@result An opaque identifier to be used in canceling the download, via `cancelImageDownloadForIdentifier:`. You must
|
@result An opaque identifier to be used in canceling the download, via `cancelImageDownloadForIdentifier:`. You must
|
||||||
retain the identifier if you wish to use it later.
|
retain the identifier if you wish to use it later.
|
||||||
*/
|
*/
|
||||||
- (id)downloadImageWithURL:(nullable NSURL *)URL
|
- (id)downloadImageWithURL:(NSURL *)URL
|
||||||
callbackQueue:(nullable dispatch_queue_t)callbackQueue
|
callbackQueue:(nullable dispatch_queue_t)callbackQueue
|
||||||
downloadProgressBlock:(void (^ _Nullable)(CGFloat progress))downloadProgressBlock
|
downloadProgressBlock:(void (^ _Nullable)(CGFloat progress))downloadProgressBlock
|
||||||
completion:(void (^ _Nullable)(CGImageRef _Nullable image, NSError * _Nullable error))completion;
|
completion:(void (^ _Nullable)(CGImageRef _Nullable image, NSError * _Nullable error))completion;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user