@capgo/capacitor-contentsquare 사용
Capacitor에서 내장 네이티브 브리지 계약이 implement되었습니다.
설치
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 |
현재 동작을 위한 원본 정의를 참조하십시오. |
Examples
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
Capacitor Contentsquare을 사용 중이라면 @capgo/capacitor-contentsquare Capacitor Contentsquare을 연결하여 @capgo/capacitor-contentsquare @capgo/capacitor-contentsquare 구현 세부사항을 위해 Getting Started의 구현 세부 사항을 참조하세요. Capacitor Plugin 디렉토리 Capgo 플러그인 디렉토리 Capgo 제품 워크플로우를 위한 플러그인 디렉토리 Capacitor Capgo 플러그인 for Capacitor 구현 세부 사항에 대한 Capgo 플러그인에 의해 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 사항에 대한 설명입니다.