가이드
AppInsights에 대한 튜토리얼
@capgo/capacitor-appinsights를 사용하는 방법
__CAPGO_KEEP_0__의 wrapper around the 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();
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-appinsights/
- 문서: /docs/plugins/appinsights/
capgo를 사용하여 계속하기: @capgo/capacitor-appinsights
__CAPGO_KEEP_0__를 사용 중이시면 @capgo/capacitor-appinsights를 사용하여 자연 플러그인 작업을 계획하는 경우 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsights와 연결하세요. @capgo/capacitor-appinsights의 implementation detail을 참조하세요. for the implementation detail in @capgo/capacitor-appinsights, Getting Started의 implementation detail을 참조하세요. __CAPGO_KEEP_0__ 플러그인 디렉토리 Capgo Capgo 제품 워크플로우에서 사용하는 플러그인 디렉토리에서 Capacitor 플러그인에 의해 Capgo Capacitor 플러그인에 의해 Capgo의 구현 세부 사항, 그리고 플러그인 추가 또는 업데이트 __CAPGO_KEEP_0__ 플러그인에 의해 __CAPGO_KEEP_1__의 구현 세부 사항.