getTempDirectory
版本要求:
BaseKit≥2.2.3@ray-js/ray≥1.5.30
支持平台:
iOSAndroid
方法签名
getTempDirectory(params: )SDK 最低版本
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
描述
获取通用缓存路径
参数
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
complete | () => void | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
success | (params: Object) => void | 否 | 接口调用成功的回调函数 |
fail | (params: Object) => void | 否 | 接口调用失败的回调函数 |
success 回调参数
| 属性 | 类型 | 说明 | BaseKit 最低版本 | SDK 最低版本 |
|---|---|---|---|---|
tempDirectory | string | 【待废弃, 不建议使用】临时文件夹路径 | v3.2.6 | — |
fail 回调参数
| 属性 | 类型 | 说明 |
|---|---|---|
errorMsg | string | 错误信息 |
errorCode | string | number | 错误码 |
| 错误扩展 |
返回值
无