//
//  ALBreakpointDownloading.h
//  GMAlpha
//
//  Created by Jing on 2018/11/28.
//  Copyright © 2018 Gengmei. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef NSURL * (^ALDownloadManagerDestination)(NSURL *targetPath, NSURLResponse *response);
typedef void (^ALDownloadmanagerProgress)(NSProgress *downloadProgress);
typedef void(^ALDownloadManagerCompletion)(NSURLResponse * _Nullable response, NSURL * _Nullable filePath, NSError * _Nullable error);

@interface ALDownloadManager : GMObject

+ (void)downloadTaskWithURL:(NSString *)url path:(NSString *)path completionHandler:(ALDownloadManagerCompletion)completionHandler;

@end

NS_ASSUME_NONNULL_END
