__CAPGO_KEEP_2__

Getting Started

GitHub

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-appinsights
bunx cap sync
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

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

初期化後、ユーザーIDを設定または更新します

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });

SDKの現在の状態を取得します

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();
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 キー、 デバイス 実装詳細については、デバイスを参照してください。