시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설정 지시를 복사하세요.
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 AppInsights 초기화
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
setUserIdCapgo 초기화 후 사용자 ID를 설정하거나 업데이트하세요.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });getState
getState현재 SDK 상태를 가져오세요.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();Type Reference
Type ReferencePanelSDKState
PanelSDKStateexport interface PanelSDKState { initCompleted: boolean; // SDK initialization status jobScheduled: boolean; // Background job scheduling status permissionAcquired: boolean; // Required permissions status}실질적인 출처
실질적인 출처이 페이지는 플러그인의 src/definitions.ts. upstream에서 public API가 변경되었을 때 다시 싱크를 실행하세요.