Getting Started
このプラグインのインストール手順とフルマークダウンガイドのセットアッププロンプトをコピーする
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-persistent-account`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/persistent-account/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
インストール
「インストール」のセクションbun add @capgo/capacitor-persistent-accountbunx cap syncインポート
「インポート」のセクションimport { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';APIの概要
「APIの概要」のセクションreadAccount
readAccountアカウントデータを永続ストレージから読み取ります。
saveAccount
import { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';
const result = await CapacitorPersistentAccount.readAccount();if (result.data) { console.log('Account data:', result.data);} else { console.log('No account data found');}saveAccount
Source Of Truthこのページはプラグインの
再同期を実行してください。 公開 __CAPGO_KEEP_0__ がアップストリームで変更された場合。
import { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';
await CapacitorPersistentAccount.saveAccount({ data: { userId: '12345', username: 'john.doe', email: 'john@example.com' }});Copy to clipboard
このページはプラグインの再同期を実行してください。 公開 __CAPGO_KEEP_0__ がアップストリームで変更された場合。 src/definitions.ts. Re-run the sync when the public API changes upstream.
Getting Startedから続けて
Getting Startedから続けてというセクションCapgoを使用している場合 Getting Started APIとダッシュボードの計画、APIの操作を連携するには capgo/capacitor-persistent-accountを使用する Capgoのnative capabilityを使用するために@capgo/capacitor-persistent-account APIの概要 APIの実装詳細 導入 導入の実装詳細 APIのキー 実装詳細については API キーを参照してください。 デバイス 実装詳細についてはデバイスを参照してください。