简体中文

上传下载接口

iOS APIs-上传下载

更新日期:2025/5/13


目录


上传/下载接口

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];
				

即刻开启您的物联网之旅

联系解决方案专家
Kalay App
解决方案
新闻动态
公司动态
行业资讯
媒体报道
永续发展
经营者的话
社会参与
环境永续
公司治理

+86 755 27702549

7×24小时服务热线

法律声明 隐私权条款

关注“TUTK”

TUTK服务尽在掌握

© 2022 物联智慧科技(深圳)有限公司版权所有粤ICP备14023641号
在线咨询
扫一扫

TUTK服务尽在掌握

全国免费服务热线
+86 755 27702549

返回顶部