You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
614 B

//
// User_Http.h
// JieliJianKang
//
// Created by kaka on 2021/3/9.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(UInt8, JLHTTP_Result) {
JLHTTP_ResultFail = 0x00, //下载失败
JLHTTP_ResultSuccess = 0x01, //下载成功
JLHTTP_ResultDownload = 0x02, //正在下载
};
typedef void(^JLHTTP_BK)(float progress, JLHTTP_Result result);
@interface User_Http : NSObject
+ (instancetype)shareInstance;
-(void)downloadUrl:(NSString*)urlString Path:(NSString*)path Result:(JLHTTP_BK)result;
-(void)cancelDownloadTask;
@end
NS_ASSUME_NONNULL_END