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.
설치
설치 제목AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. 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 Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:
bun add @capgo/capacitor-appinsightsbunx cap sync수입
Importimport { CapacitorAppInsights } from '@capgo/capacitor-appinsights';API 개요
Section titled “API 개요”init
initAppInsights SDK 초기화
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.init({ partnerId: 'partner-id-123', partnerKey: 'partner-key-123',});setUserId
사용자 ID 설정사용자 ID 설정
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({ userId: 'user-id-123' });getState
getStateAppInsights SDK 현재 상태 가져오기
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
const result = await CapacitorAppInsights.getState();console.log(result);타입 참조
타입 참조 섹션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이 업스트림에서 변경될 때 다시 싱크를 실행하세요.
시작부터 계속
시작부터 계속 섹션이러한 플러그인을 사용 중이라면 시작하기 대시보드와 API 연산을 계획하고 연결하려면 @capgo/capacitor-appinsights를 사용하여 native 기능을 사용하여 @capgo/capacitor-appinsights를 사용하는 경우 API 개요 API 개요에서 구현 세부 정보를 참조하는 경우 소개 소개에서 구현 세부 정보를 참조하는 경우 API 키 API 키에서 구현 세부 정보를 참조하는 경우, 그리고 장치 __CAPGO_KEEP_0__에서 구현 세부 정보를 참조하는 경우 장치.