__CAPGO_KEEP_3__

Getting Started

GitHub

AI-Assisted セットアップを使用してプラグインをインストールできます。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 セットアップを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。

ターミナル画面
bun add @capgo/capacitor-appinsights
bunx cap sync
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

SDK を初期化する

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.init({
partnerId: 'partner-id-123',
partnerKey: 'partner-key-123',
});

setUserId

setUserId

__CAPGO_KEEP_0__ のユーザーIDを設定または更新する

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

getState

getState

SDK の現在の状態を取得する

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
const result = await CapacitorAppInsights.getState();
console.log(result);

型リファレンス

「型リファレンス」
export interface PanelSDKState {
initCompleted: boolean; // SDK initialization status
jobScheduled: boolean; // Background job scheduling status
permissionAcquired: boolean; // Required permissions status
}

真実の源

「真実の源」

このページはプラグインから生成されています。 src/definitions.tsパブリック API がアップストリームで変更されたら、再度同期を実行してください。

「はじめから始める」

「はじめから始める」

あなたが「はじめから始める」 スタートガイド ダッシュボードとAPIの計画と実行に必要なのは、APIを @capgo/capacitor-appinsightsを使用 @capgo/capacitor-appinsightsのネイティブ機能の APIの概要 APIの概要の実装詳細 導入 導入の実装詳細 APIのキー APIのキーに関する実装詳細、 デバイス デバイスの実装詳細