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.
インストール
「インストール」というセクションbun add @capgo/capacitor-appinsightsbunx cap syncインポート
「インポート」というセクションimport { CapacitorAppInsights } from '@capgo/capacitor-appinsights';API の概要
API の概要というセクションinit
init というセクション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 });クリップボードにコピー
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });getState
クリップボードにコピーSDK
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();種類の参照
種類の参照PanelSDKState
パネルSDKの状態export interface PanelSDKState { initCompleted: boolean; // SDK initialization status jobScheduled: boolean; // Background job scheduling status permissionAcquired: boolean; // Required permissions status}真実の源
真実の源このページはプラグインから生成されています。 src/definitions.tsパブリックのAPIがアップストリームで変更されたときに再度syncを実行してください。
Getting Startedから続けてください
Capgoを使用している場合Getting Started Capgoを使用している場合 ダッシュボードとAPIの運用計画を立てるには、 Using @capgo/capacitor-appinsights Using @capgo/capacitor-appinsightsのネイティブ機能 APIの概要 APIの概要の実装詳細 導入 導入の実装詳細 APIのキー APIのキーに関する実装詳細 デバイス デバイスに関する実装詳細