Merge pull request #2661 from dreampiggy/fix_notification_name_duplicated_declare
Fix that `SDWebImageDownloadStartNotification` declare twice in header files
This commit is contained in:
commit
1faab6c863
|
@ -85,8 +85,10 @@ typedef NS_OPTIONS(NSUInteger, SDWebImageDownloaderOptions) {
|
|||
SDWebImageDownloaderPreloadAllFrames = 1 << 11
|
||||
};
|
||||
|
||||
FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStartNotification;
|
||||
FOUNDATION_EXPORT NSString * _Nonnull const SDWebImageDownloadStopNotification;
|
||||
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 SDImageLoaderCompletedBlock SDWebImageDownloaderCompletedBlock;
|
||||
|
|
|
@ -11,6 +11,11 @@
|
|||
#import "SDWebImageDownloaderOperation.h"
|
||||
#import "SDWebImageError.h"
|
||||
|
||||
NSNotificationName const SDWebImageDownloadStartNotification = @"SDWebImageDownloadStartNotification";
|
||||
NSNotificationName const SDWebImageDownloadReceiveResponseNotification = @"SDWebImageDownloadReceiveResponseNotification";
|
||||
NSNotificationName const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNotification";
|
||||
NSNotificationName const SDWebImageDownloadFinishNotification = @"SDWebImageDownloadFinishNotification";
|
||||
|
||||
static void * SDWebImageDownloaderContext = &SDWebImageDownloaderContext;
|
||||
|
||||
@interface SDWebImageDownloadToken ()
|
||||
|
|
|
@ -10,13 +10,6 @@
|
|||
#import "SDWebImageDownloader.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
|
||||
For the description about these methods, see `SDWebImageDownloaderOperation`
|
||||
|
|
|
@ -16,11 +16,6 @@ const float NSURLSessionTaskPriorityDefault = 0.5;
|
|||
const float NSURLSessionTaskPriorityLow = 0.25;
|
||||
#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 kCompletedCallbackKey = @"completed";
|
||||
|
||||
|
|
Loading…
Reference in New Issue