__CAPGO_KEEP_1__

Getting Started

GitHub

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-appinsights
bunx cap sync

수입

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

init

init

AppInsights SDK 초기화

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

사용자 ID 설정

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

getState

getState

AppInsights 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 연산을 계획하고 연결하려면 @capgo/capacitor-appinsights를 사용하여 native 기능을 사용하여 @capgo/capacitor-appinsights를 사용하는 경우 API 개요 API 개요에서 구현 세부 정보를 참조하는 경우 소개 소개에서 구현 세부 정보를 참조하는 경우 API 키 API 키에서 구현 세부 정보를 참조하는 경우, 그리고 장치 __CAPGO_KEEP_0__에서 구현 세부 정보를 참조하는 경우 장치.