Storage
Overview about Storage Module
Provides functions for storing miniapp's data in the webview of Zalopay App. Each miniapp is allocated 4KB of memory space.
List of supported SDK functions
| Function | Description |
|---|---|
| getStorageItem | Get the value of data saved in local storage based on key and appId attributes |
| setStorageItem | Store data into the storage in the form key: value |
| getStorageAllItem | Get all the data that miniapp is saving in local storage of webview of Zalopay App |
| removeStorageItem | Delete the value of a data saved in local storage based on key and appId attributes |
| clearStorage | Delete all of the data of miniapp stored in local storage of webview of Zalopay App |
| getStorageInfo | Get information about the memory storage of a miniapp |