ios:Get file plugin via commandDelegate to avoid using global file plugin directly.

This commit is contained in:
lmnbeyond
2014-02-25 10:34:11 +08:00
parent d28f85d7b0
commit e76deb20d5
2 changed files with 9 additions and 8 deletions
+2
View File
@@ -19,6 +19,7 @@
#import <Foundation/Foundation.h>
#import <Cordova/CDVPlugin.h>
#import "CDVFile.h"
enum CDVFileTransferError {
FILE_NOT_FOUND_ERR = 1,
@@ -81,5 +82,6 @@ extern NSString* const kOptionsKeyCookie;
@property (nonatomic, assign) BOOL trustAllHosts;
@property (strong) NSFileHandle* targetFileHandle;
@property (nonatomic, strong) CDVFileTransferEntityLengthRequest* entityLengthRequest;
@property (nonatomic, strong) CDVFile *filePlugin;
@end;