For the complete documentation index, see llms.txt. This page is also available as Markdown.

Storage.setItem

기능 설명

모바일 앱의 로컬 저장소에 문자열 데이터를 저장해요. 앱이 종료되었다가 다시 시작해도 데이터가 유지되어야 할 때 사용해요.

타입

Storage.setItem(key: string, value: string): Promise<void>;

Params

  • key: string — 저장할 키예요.

  • value: string — 저장할 문자열 값이에요.

Response

없음

예시 코드

JavaScript

import { Storage } from "@apps-in-toss/web-framework";

await Storage.setItem("my-key", "value");

도움이 되었나요?