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.
33 lines
1.5 KiB
33 lines
1.5 KiB
// Copyright 2015-present 650 Industries. All rights reserved.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <ExpoModulesCore/EXDefines.h>
|
|
|
|
@interface EXSessionTaskDelegate : NSObject
|
|
|
|
@property (nonatomic, strong, readonly) EXPromiseResolveBlock resolve;
|
|
@property (nonatomic, strong, readonly) EXPromiseRejectBlock reject;
|
|
|
|
- (instancetype)initWithResolve:(EXPromiseResolveBlock)resolve
|
|
reject:(EXPromiseRejectBlock)reject;
|
|
|
|
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didFinishDownloadingToURL:(NSURL *)location;
|
|
|
|
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error;
|
|
|
|
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
|
|
didWriteData:(int64_t)bytesWritten
|
|
totalBytesWritten:(int64_t)totalBytesWritten
|
|
totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite;
|
|
|
|
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didReceiveData:(NSData *)data;
|
|
|
|
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
didSendBodyData:(int64_t)bytesSent
|
|
totalBytesSent:(int64_t)totalBytesSent
|
|
totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend;
|
|
|
|
- (NSDictionary *)parseServerResponse:(NSURLResponse *)response;
|
|
|
|
@end
|