batchSetStorage
Requires:
BaseKit≥3.30.1@ray-js/ray≥1.7.60
Platforms:
iOSAndroid
Method signature
batchSetStorage(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 7.5.0
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 7.5.0
Description
Batch store data under the specified key in local storage. This overwrites the existing value for that key. Data remains available unless the user deletes it or the system clears it due to storage constraints. The maximum data size per key is 1 MB, and the total storage limit is 10 MB.
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
| Yes | List of key-value pairs for batch storage | — | ||
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | () => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None