上传/下载接口
KY_startDownload
- 功能描述:
- 开始文件下载。
接口定义
- (void)KY_startDownload:(KYTransferType)type
	path:(NSString *)path
	channel:(NSInteger)channel;参数说明
| 参数 | 类型 | 说明 | 
|---|---|---|
| type | 传输方式。详细定义参考:KYTransferType 枚举 | |
| path | string | 沙盒目录 | 
| channel | int | 进行下载的通道,默认0 | 
KYTransferType 枚举
| 参数 | 说明 | 
|---|---|
| 0 | TKTransferType_AVAPI | 
| 1 | TKTransferType_RDT | 
回调说明
暂无
返回码
暂无
代码示例
[self.camera KY_startDownload:transFerType path:path channel:0];KY_stopDownload
- 功能描述:
- 停止文件下载。
接口定义
- (void)KY_startDownload:(KYTransferType)type
	channel:(NSInteger)channel;参数说明
| 参数 | 类型 | 说明 | 
|---|---|---|
| type | 传输方式。详细定义参考:KYTransferType 枚举 | |
| channel | int | 进行下载的通道,默认0 | 
回调说明
暂无
返回码
暂无
代码示例
[self.camera KY_startDownload:transFerType channel:0];KY_startUpload
- 功能描述:
- 开始文件上传
接口定义
- (void)KY_startUpload:(KYTransferType)type
	path:(NSString *)path
	channel:(NSInteger)channel;参数说明
| 参数 | 类型 | 说明 | 
|---|---|---|
| type | 传输方式。详细定义参考:KYTransferType 枚举 | |
| path | string | 文件完整沙盒路径 | 
| channel | int | 进行上传的通道,默认0 | 
回调说明
暂无
返回码
暂无
代码示例
[self.camera KY_startUpload:transFerType path:path channel:0];KY_stopUpload
- 功能描述:
- 停止文件上传。
接口定义
- (void)KY_startUpload:(KYTransferType)type
	channel:(NSInteger)channel;参数说明
| 参数 | 类型 | 说明 | 
|---|---|---|
| type | 传输方式。详细定义参考:KYTransferType 枚举 | |
| channel | int | 进行上传的通道,默认0 | 
回调说明
暂无
返回码
暂无
代码示例
[self.camera KY_stopUpload:transFerType channel:0];
