コンテンツにスキップ

Getting Started

ターミナル画面
bun add @capgo/capacitor-persistent-account
bunx cap sync
import { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';

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'
}
});

再同期を実行してください。 公開 __CAPGO_KEEP_0__ がアップストリームで変更された場合。 src/definitions.ts. Re-run the sync when the public API changes upstream.

Capgoを使用している場合 Getting Started APIとダッシュボードの計画、APIの操作を連携するには capgo/capacitor-persistent-accountを使用する Capgoのnative capabilityを使用するために@capgo/capacitor-persistent-account APIの概要 APIの実装詳細 導入 導入の実装詳細 APIのキー 実装詳細については API キーを参照してください。 デバイス 実装詳細についてはデバイスを参照してください。