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-appinsights`
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/appinsights/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.
インストール
「インストール」のセクションCapgoのAI-Assisted Setupを使用してプラグインをインストールできます。AIツールにCapgoスキルを追加するには、以下のコマンドを実行してください。
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-appinsights` plugin in my project.Manual Setupを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。
bun add @capgo/capacitor-appinsightsbunx cap syncインポート
「インポート」セクションimport { CapacitorAppInsights } from '@capgo/capacitor-appinsights';API の概要
「API の概要」セクションinit
「init」セクションAppInsights SDK を初期化する
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.init({} as { partnerId: string; // Provided by our business unit partnerKey: string; // Provided by our business unit });setUserId
「setUserId」セクション初期化後、ユーザー ID を設定または更新する
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });getState
getStateのセクションSDKの現在の状態を取得
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();タイプ リファレンス
タイプ リファレンスのセクションPanelSDKState
パネルSDKStateのセクションexport interface PanelSDKState { initCompleted: boolean; // SDK initialization status jobScheduled: boolean; // Background job scheduling status permissionAcquired: boolean; // Required permissions status}真実の源
真実の源のセクション__CAPGO_KEEP_0__のパブリック リソースがアップストリームで変更された場合に再度同期を実行する src/definitions.ts. Re-run the sync when the public API changes upstream.
Getting Startedから続けてください
Getting Startedから続けてくださいというセクションCapacitorを使用している場合 Getting Started APIのダッシュボードとAPIの操作を計画するには、CapacitorをAPIに接続します。 Capacitorを使用して、@capgo/capacitor-appinsightsを使用します。 Capacitorのネイティブ機能を使用するには、@capgo/capacitor-appinsightsを使用します。 APIの概要 APIの実装詳細 Capacitorの概要 Capacitorの実装詳細 APIのキー APIの実装詳細については、 デバイス __CAPGO_KEEP_0__の実装詳細については、デバイス.