メインコンテンツにジャンプ

ガイド

Apptopia AppInsightsのチュートリアル

@capgo/capacitor-appinsightsの使用

Apptopia AppInsightsのラッパー https://github.com/apptopia/appinsights SDK.

インストール

bun add @capgo/capacitor-appinsights
bunx cap sync

このプラグインが公開するもの

  • init - AppInsights SDK を初期化する
  • setUserId - 初期化後にユーザーIDを設定または更新する
  • getState - AppInsights SDK の現在の状態を取得する

使用例

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

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

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

await CapacitorAppInsights.setUserId({} as { userId: string });

getState

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

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

await CapacitorAppInsights.getState();

フルリファレンス

@capgo/capacitor-appinsightsを使用している場合

@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsightsを使用して @capgo/capacitor-appinsightsを接続して @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsightsの実装詳細は@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsightsを参照してください @capgo/capacitor-appinsights @capgo/capacitor-appinsightsの実装詳細はGetting Startedを参照してください __CAPGO_KEEP_0__ プラグイン ディレクトリ __CAPGO_KEEP_0__ Capgo Plugin Directory 製品ワークフローについての情報はCapgo プラグインディレクトリでご確認ください。 Capacitor プラグインはCapgoによって提供されています。 実装詳細についてはCapacitor プラグインのCapgoをご確認ください。 プラグインの追加または更新 プラグインの追加または更新の実装詳細