SmartStorageAbility.getAll(callback: Function)

Requires:
@ray-js/panel-sdk≥1.0.0

Description

Read all stored data under the current device/group

Parameters

ParameterTypeRequiredDescription
NoOptional callback invoked after the data is read

Return Value

Type: Promise<{ [key: string]: TReturnRes<T> }>
Result containing all stored key-value pairs

Referenced Types

typeTReturnRes
PropertyTypeDescription
__isEqual__booleanWhether the values are equal, used to determine whether the cloud matches the local data; if equal, do not update
Returned value and type
timetimeStampTimestamp of the generated design, used to determine which side is the latest (local or cloud data)

Examples

Example

const allData = await sdm.storage.getAll();
console.log('All stored data:', allData);