JCSDK Objective-C API Reference for iOS/macOS
2.5.1
JCSDKOC
JCSDKOC
JCStorage
JCStorage.h
1
//
2
// JCStorage.h
3
// JCSDKOC
4
//
5
// Created by maikireton on 2017/8/11.
6
// Copyright © 2017年 juphoon. All rights reserved.
7
//
8
9
#import <Foundation/Foundation.h>
10
#import "JCStorageItem.h"
11
#import "JCStorageCallback.h"
12
19
extern
const
int
JCStorageFileExpire
;
20
28
@interface
JCStorage
: NSObject
29
44
+(
JCStorage
*)create:(
JCClient
*)client callback:(
id
<
JCStorageCallback
>)callback;
45
53
+(void)
destroy
;
54
67
-(
JCStorageItem
*)uploadFileByExpireTime:(NSString*)path expiredSeconds:(
int
)expiredSeconds cookie:(
id
)cookie;
68
80
-(
JCStorageItem
*)downloadFile:(NSString*)uri savePath:(NSString*)savePath cookie:(
id
)cookie;
81
90
-(bool)cancelFile:(
JCStorageItem
*)item;
91
104
-(bool)cancelFileByCookie:(
id
)cookie;
105
106
@end
107
JCStorageItem
Definition:
JCStorageItem.h:21
JCStorageFileExpire
const int JCStorageFileExpire
JCStorage
Definition:
JCStorage.h:29
JCStorageCallback-p
Definition:
JCStorageCallback.h:20
+[JCStorage destroy]
void destroy()
JCClient
Definition:
JCClient.h:95
制作者
1.8.20