文件传输
IDODeviceFileToAppTask
属性
deviceTransItem
文件项实体
transFileType
当前传输中的文件类型
方法
acceptReceiveFile(onProgress:onComplete:)
允许接收文件
- Parameters:
- onProgress: 传输进度 0 ~ 1.0
- onComplete: 传输结果, isCompleted,receiveFilePath 接收后的文件(isCompleted为true时有效)
rejectReceiveFile(completion:)
拒绝接收文件
- Parameters:
- completion: 操作成功 / 失败
stopReceiveFile(completion:)
允许接收文件
- Parameters:
- completion: 操作成功 / 失败
IDODeviceTransItem
属性 | 类型 | 说明 |
---|---|---|
fileType | IDODeviceTransType | 文件类型 |
fileSize | Int | 文件大小 单位 字节 |
fileCompressionType | Int | 压缩类型 0不压缩 2压缩传输 |
fileName | Int | 文件名称 |
filePath | String? | 接收成功后的文件路径 |
IDODeviceTransType
类型 | 说明 |
---|---|
voiceMemo | 语音备忘录文件 |
accLog | acc算法日志文件 |
gpsLog | gps算法日志文件 |