getStorage
Requires:
BaseKit≥2.0.1@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
getStorage(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
Description
Asynchronously get the value for the specified key from local storage
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
key | string | Yes | The specified key in local storage | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | (params: Object) => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
success callback parameters
| Property | Type | Description | BaseKit Since | Minimum SDK versions |
|---|---|---|---|---|
data | any | Value for the key | v3.2.6 | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None