Storage.setItem
Feature description
Stores string data in the mobile app's local storage. Use this when the data should persist even after the app is closed and reopened.
Type
Storage.setItem(key: string, value: string): Promise<void>;Params
key: string— The key to store.value: string— The string value to save.
Response
None
Example code
JavaScript
import { Storage } from "@apps-in-toss/web-framework";
await Storage.setItem("my-key", "value");Was this helpful?