Move the declare and the define into the downloader, make the import success. Update to NSNotificationName
This commit is contained in:
parent
9f262fc8cf
commit
9d4b53118e
|
@ -85,6 +85,11 @@ typedef NS_OPTIONS(NSUInteger, SDWebImageDownloaderOptions) {
|
||||||
SDWebImageDownloaderPreloadAllFrames = 1 << 11
|
SDWebImageDownloaderPreloadAllFrames = 1 << 11
|
||||||
};
|
};
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT NSNotificationName _Nonnull const SDWebImageDownloadStartNotification;
|
||||||
|
FOUNDATION_EXPORT NSNotificationName _Nonnull const SDWebImageDownloadReceiveResponseNotification;
|
||||||
|
FOUNDATION_EXPORT NSNotificationName _Nonnull const SDWebImageDownloadStopNotification;
|
||||||
|
FOUNDATION_EXPORT NSNotificationName _Nonnull const SDWebImageDownloadFinishNotification;
|
||||||
|
|
||||||
typedef SDImageLoaderProgressBlock SDWebImageDownloaderProgressBlock;
|
typedef SDImageLoaderProgressBlock SDWebImageDownloaderProgressBlock;
|
||||||
typedef SDImageLoaderCompletedBlock SDWebImageDownloaderCompletedBlock;
|
typedef SDImageLoaderCompletedBlock SDWebImageDownloaderCompletedBlock;
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,11 @@
|
||||||
#import "SDWebImageDownloaderOperation.h"
|
#import "SDWebImageDownloaderOperation.h"
|
||||||
#import "SDWebImageError.h"
|
#import "SDWebImageError.h"
|
||||||
|
|
||||||
|
NSNotificationName const SDWebImageDownloadStartNotification = @"SDWebImageDownloadStartNotification";
|
||||||
|
NSNotificationName const SDWebImageDownloadReceiveResponseNotification = @"SDWebImageDownloadReceiveResponseNotification";
|
||||||
|
NSNotificationName const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNotification";
|
||||||
|
NSNotificationName const SDWebImageDownloadFinishNotification = @"SDWebImageDownloadFinishNotification";
|
||||||
|
|
||||||
static void * SDWebImageDownloaderContext = &SDWebImageDownloaderContext;
|
static void * SDWebImageDownloaderContext = &SDWebImageDownloaderContext;
|
||||||
|
|
||||||
@interface SDWebImageDownloadToken ()
|
@interface SDWebImageDownloadToken ()
|
||||||
|
|
|
@ -10,13 +10,6 @@
|
||||||
#import "SDWebImageDownloader.h"
|
#import "SDWebImageDownloader.h"
|
||||||
#import "SDWebImageOperation.h"
|
#import "SDWebImageOperation.h"
|
||||||
|
|
||||||
FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStartNotification;
|
|
||||||
FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadReceiveResponseNotification;
|
|
||||||
FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStopNotification;
|
|
||||||
FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadFinishNotification;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Describes a downloader operation. If one wants to use a custom downloader op, it needs to inherit from `NSOperation` and conform to this protocol
|
Describes a downloader operation. If one wants to use a custom downloader op, it needs to inherit from `NSOperation` and conform to this protocol
|
||||||
For the description about these methods, see `SDWebImageDownloaderOperation`
|
For the description about these methods, see `SDWebImageDownloaderOperation`
|
||||||
|
|
|
@ -16,11 +16,6 @@ const float NSURLSessionTaskPriorityDefault = 0.5;
|
||||||
const float NSURLSessionTaskPriorityLow = 0.25;
|
const float NSURLSessionTaskPriorityLow = 0.25;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NSString *const SDWebImageDownloadStartNotification = @"SDWebImageDownloadStartNotification";
|
|
||||||
NSString *const SDWebImageDownloadReceiveResponseNotification = @"SDWebImageDownloadReceiveResponseNotification";
|
|
||||||
NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNotification";
|
|
||||||
NSString *const SDWebImageDownloadFinishNotification = @"SDWebImageDownloadFinishNotification";
|
|
||||||
|
|
||||||
static NSString *const kProgressCallbackKey = @"progress";
|
static NSString *const kProgressCallbackKey = @"progress";
|
||||||
static NSString *const kCompletedCallbackKey = @"completed";
|
static NSString *const kCompletedCallbackKey = @"completed";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue