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アシストセットアップを使用してプラグインをインストールできます。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.手動設定を好む場合は、以下のコマンドを実行し、下記のプラットフォーム固有の指示に従ってプラグインをインストールしてください。
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
Section titled “ユーザーIDを設定する”初期化後、ユーザーIDを設定または更新します
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });getState
Section titled “現在の状態を取得する”SDKの現在の状態を取得します
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();PanelSDKState
Section titled “パネルSDKの状態”export interface PanelSDKState { initCompleted: boolean; // SDK initialization status jobScheduled: boolean; // Background job scheduling status permissionAcquired: boolean; // Required permissions status}このページはプラグインから生成されます。 src/definitions.ts. 同期を再実行してください。 公開 API がアップストリームで変更されたとき。
Getting Started から続けてください。
Section titled “Getting Started から続けてください”。Capgo を使用している場合 Getting Started 計画用ダッシュボードと API のオペレーションを実行するには、Capgo を接続してください。 Capacitor を使用して @capgo/capacitor-appinsights Capacitor を使用して @capgo/capacitor-appinsights のネイティブ機能 Capacitor を使用して @API/__CAPGO_KEEP_1__-appinsights の API オーバービュー Capacitor を使用して @API/__CAPGO_KEEP_1__-appinsights の API オーバービュー の実装 Capacitor を使用して @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsights の導入 実装詳細については、Introductionを参照してください。 API キー 実装詳細については、API キー、 デバイス 実装詳細については、デバイスを参照してください。