mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 11:30:04 +00:00
This is a simplistic, NSURLSession-based downloader object that implements ASImageDownloaderProtocol and can be used with ASMultiplexImageNode and ASNetworkImageNode. (Closes #115. NSURLSession should suffice for most usecases, and this code should provide a good jumping-off point for a more-complex implementation.)
17 lines
496 B
Objective-C
17 lines
496 B
Objective-C
/* Copyright (c) 2014-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <AsyncDisplayKit/ASImageProtocols.h>
|
|
|
|
/**
|
|
* @abstract Simple NSURLSession-based image downloader.
|
|
*/
|
|
@interface ASBasicImageDownloader : NSObject <ASImageDownloaderProtocol>
|
|
|
|
@end
|