가이드
Capacitor에서 Contentsquare 사용 방법
Using @capgo/capacitor-contentsquare
Capacitor에서 Contentsquare-__CAPGO_KEEP_1__을 구현한 내부 네이티브 브리지 계약
설치
bun add @capgo/capacitor-contentsquare
bunx cap sync
bunx cap sync code의 네이티브 Contentsquare를 프로젝트에 복사합니다. 플러그인 업그레이드 후 다시 실행하세요.
import
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 개의 핵심 메서드가 나열되어 있습니다. 리스너 및 버전 도우미, 각 메서드의 전체 계약은 __CAPGO_KEEP_0__ 저장소에서 문서화되어 있습니다. GitHub 참조.
전체 참조
capgo/capacitor-contentsquare를 사용하는 경우 계속 진행하십시오.
__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare를 사용하는 경우 Using @capgo/capacitor-contentsquare __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare @capgo/capacitor-contentsquare @capgo/capacitor-contentsquare 시작하기 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare Capgo 플러그인 디렉토리 @Capgo/__CAPGO_KEEP_1__ 플러그인 @Capacitor/Capgo 플러그인 Capacitor 플러그인에 대한 구현 세부 사항은 Capgo 플러그인에 의해 제공됩니다. @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare