-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
EXSessionDownloadTaskDelegate.h
24 lines (18 loc) · 1.1 KB
/
EXSessionDownloadTaskDelegate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2015-present 650 Industries. All rights reserved.
#import <EXFileSystem/EXSessionTaskDelegate.h>
typedef void (^EXDownloadDelegateOnWriteCallback)(NSURLSessionDownloadTask *task, int64_t bytesWritten, int64_t totalBytesWritten, int64_t totalBytesExpectedToWrite);
@interface EXSessionDownloadTaskDelegate : EXSessionTaskDelegate
- (instancetype)initWithResolve:(UMPromiseResolveBlock)resolve
withReject:(UMPromiseRejectBlock)reject
withSessionTaskRegister:(id<EXSessionTaskRegister>)taskRegister
withLocalFileUrl:(NSURL *)localFileUrl
withServerUrl:(NSURL *)serverUrl
withMd5Option:(BOOL)md5Option;
- (instancetype)initWithResolve:(UMPromiseResolveBlock)resolve
withReject:(UMPromiseRejectBlock)reject
withSessionTaskRegister:(id<EXSessionTaskRegister>)taskRegister
withLocalFileUrl:(NSURL *)localFileUrl
withServerUrl:(NSURL *)serverUrl
withMd5Option:(BOOL)md5Option
withOnWriteCallback:(EXDownloadDelegateOnWriteCallback)onWrite;
@end