メインコンテンツにスキップ

Getting Started

GitHub

AI-Assisted セットアップを使用してプラグインをインストールできます。次のコマンドを使用して、Capgo スキルをAIツールに追加します。

ターミナルウィンドウ
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

次のプロンプトを使用してください。

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-persistent-account` plugin in my project.

Manual セットアップを使用する場合は、次のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。

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

readAccount

readAccount

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

saveAccount

import { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';
await CapacitorPersistentAccount.saveAccount({
data: {
userId: '12345',
username: 'john.doe',
email: 'john@example.com'
}
});

Source Of Truth src/definitions.ts. upstream の API が変更されたときに再度 sync を実行してください。

Getting Started から続けてください。

Getting Started から続けてください。

Getting Started dashboard と __CAPGO_KEEP_0__ の計画と操作を行う場合、を接続してください。 native capability を使用する場合の @API/__CAPGO_KEEP_1__-persistent-account native capability を使用する場合の @capgo/capacitor-persistent-account for the native capability in Using @capgo/capacitor-persistent-account, API の実装詳細 API の実装詳細 Introduction Introduction の実装詳細 API キー API キーに関する実装詳細のため、 デバイス デバイスに関する実装詳細のため、