downloadStream(params: Object)
版本要求:
P2PKit≥2.0.2@ray-js/ray≥1.3.15
支持平台:
iOSAndroid
描述
download file stream
参数
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
deviceId | string | 是 | device id |
albumName | string | 是 | albumName given by the device |
jsonfiles | string | 是 | file name jsons,eg: {"files":["filesname1", "filesname2", "filesname3" ]} |
complete | () => void | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
success | () => void | 否 | 接口调用成功的回调函数 |
fail | (params: Object) => void | 否 | 接口调用失败的回调函数 |
fail 回调参数
| 属性 | 类型 | 说明 |
|---|---|---|
errorMsg | string | 错误信息 |
errorCode | string | number | 错误码 |
| 错误扩展 |
返回值
无