가이드
Capacitor에서 Contentsquare 사용 방법
@capgo/capacitor-contentsquare 사용하기
Capacitor에서 구현한 내부 네이티브 브릿지 컨트랙트
설치
bun add @capgo/capacitor-contentsquare
bunx cap sync
bunx cap sync 플러그인의 네이티브 code를 네이티브 프로젝트에 복사합니다. 플러그인을 업그레이드할 때마다 다시 실행하세요.
가져오기
import { Contentsquare } from '@capgo/capacitor-contentsquare';
API 한눈에 보기
| 메서드 | 설명 |
|---|---|
optIn |
현재 동작 방식은 소스 정의를 참조하세요. |
optOut |
현재 동작 방식은 소스 정의를 참조하세요. |
sendScreenName |
현재 동작 방식은 소스 정의를 참조하세요. |
sendTransaction |
현재 동작 방식은 소스 정의를 참조하세요. |
sendDynamicVarWithStringValue |
현재 동작 방식은 소스 정의를 참조하세요. |
sendDynamicVarWithIntValue |
현재 동작 방식은 소스 정의를 참조하세요. |
onReady |
현재 동작 방식은 소스 정의를 참조하세요. |
excludeURLForReplay |
현재 동작 방식은 소스 정의를 참조하세요. |
setPIISelectors |
현재 동작 방식은 소스 정의를 참조하세요. |
setCapturedElementsSelector |
현재 동작 방식은 소스 정의를 참조하세요. |
collect |
현재 동작 방식은 소스 정의를 참조하세요. |
예시
optIn()
현재 계약에 대한 내용은 API 문서를 참조하세요.
import { Contentsquare } from '@capgo/capacitor-contentsquare';
await Contentsquare.optIn();
optOut()
현재 계약에 대한 내용은 API 문서를 참조하세요.
import { Contentsquare } from '@capgo/capacitor-contentsquare';
await Contentsquare.optOut();
sendScreenName()
현재 계약에 대한 내용은 API 문서를 참조하세요.
import { Contentsquare } from '@capgo/capacitor-contentsquare';
await Contentsquare.sendScreenName({ name: 'example' });
sendTransaction()
현재 계약에 대한 내용은 API 문서를 참조하세요.
import { Contentsquare, CurrencyCode } from '@capgo/capacitor-contentsquare';
await Contentsquare.sendTransaction({
transactionValue: 1,
transactionCurrency: CurrencyCode.USD,
});
sendDynamicVarWithStringValue()
현재 계약에 대한 내용은 API 문서를 참조하세요.
import { Contentsquare } from '@capgo/capacitor-contentsquare';
await Contentsquare.sendDynamicVarWithStringValue({
dynVarKey: 'dyn-var-key-123',
dynVarValue: 'dyn-var-value',
});
sendDynamicVarWithIntValue()
현재 계약에 대한 내용은 API 문서를 참조하세요.
import { Contentsquare } from '@capgo/capacitor-contentsquare';
await Contentsquare.sendDynamicVarWithIntValue({
dynVarKey: 'dyn-var-key-123',
dynVarValue: 'dyn-var-value',
});
위 표에는 11개의 핵심 메서드가 나와 있습니다. Listener와 버전 헬퍼, 각 메서드의 전체 계약은 다음 문서에서 확인할 수 있습니다. GitHub 리포지토리.
전체 레퍼런스
@capgo/capacitor-contentsquare 사용법에 이어
사용 중이라면 @capgo/capacitor-contentsquare 사용하기 네이티브 플러그인 작업을 계획하려면, 이를 다음 항목과 연결하세요: @capgo/capacitor-contentsquare @capgo/capacitor-contentsquare의 구현 세부 사항은 시작하기 Getting Started의 구현 상세 내용은 Capgo 플러그인 디렉토리 Capgo Plugin Directory의 제품 워크플로우에 맞춰, Capgo의 Capacitor 플러그인 Capgo의 Capacitor Plugins 구현 세부 사항 및 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트의 구현 세부 사항은.