CNLiveWebImageDownload.h 764 Bytes
//
//  CNLiveWebImageDownload.h
//  WSWebImageDemo
//
//  Created by 王帅 on 16/7/14.
//  Copyright © 2016年 王帅. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CNLiveWebImageOperation.h"
#import "CNLiveWebImageBlock.h"

typedef NS_OPTIONS(NSUInteger, CNLiveWebImageDownloadOptions) {
    CNLiveWebImageDownloadProgressiveDownload = 1 << 0,
    CNLiveWebImageDownloadContinueInBackground = 1 << 1
};

@interface CNLiveWebImageDownload : NSObject

+ (CNLiveWebImageDownload *)sharedDownload;

- (id <CNLiveWebImageOperation>)downloadWebImageWithURL:(NSURL *)url options:(CNLiveWebImageDownloadOptions)options progress:(CNLiveDownloadProgressBlock)progress completed:(CNLiveDownloadCompletedBlock)completed;

@end