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.
インストール
「インストール」というタイトルのセクション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.If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:
bun add @capgo/capacitor-appinsightsbunx cap syncImport
「Import」セクションimport { CapacitorAppInsights } from '@capgo/capacitor-appinsights';APIの概要
「APIの概要」セクションinit
「init」セクションCapgoの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」セクション__CAPGO_KEEP_0__のユーザ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}真実の源
真実の源のセクションこのページはプラグインから生成されています。 src/definitions.ts. upstream の API が変更されたときに再度 sync を実行してください。
Getting Started から続けてください。
Getting Started から続けてください。あなたが「Getting Started から続けてください。」を使用している場合 Getting Started ダッシュボードと API の操作を計画するために、を接続してください。 Using @capgo/capacitor-appinsights Using @capgo/capacitor-appinsights のネイティブ機能について API Overview API Overview の実装詳細について Introduction Introduction の実装詳細について API キー API キーと デバイス デバイスの実装詳細