getStorageInfo
版本要求:
BaseKit≥3.30.1@ray-js/ray≥1.7.60
支持平台:
iOSAndroid
方法签名
getStorageInfo(params: )SDK 最低版本
- iOS
ThingSmartBaseKitBizBundle - ≥ 7.5.0
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 7.5.0
描述
异步获取当前storage的相关信息
参数
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
complete | () => void | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
success | (params: Object) => void | 否 | 接口调用成功的回调函数 |
fail | (params: Object) => void | 否 | 接口调用失败的回调函数 |
success 回调参数
| 属性 | 类型 | 说明 | SDK 最低版本 |
|---|---|---|---|
keys | string[] | 当前 storage 中所有的 key | — |
currentSize | number | 当前占用的空间大小, 单位kb | — |
limitSize | number | 限制的空间大小,单位kb | — |
fail 回调参数
| 属性 | 类型 | 说明 |
|---|---|---|
errorMsg | string | 错误信息 |
errorCode | string | number | 错误码 |
| 错误扩展 |
返回值
无