跳过主要内容
返回插件
@capgo/capacitor-contentsquare
教程
@capgo/capacitor-contentsquare

Contentsquare

在Capacitor中集成Contentsquare移动分析、consent gating、屏幕跟踪、交易和会话回放控制

指南

Contentsquare插件教程

在设备上测试

下载Capgo应用程序,然后扫描code的二维码

Contentsquare插件预览二维码 code

使用@capgo/capacitor-contentsquare

Capacitor内部原生桥接合同

安装

bun add @capgo/capacitor-contentsquare
bunx cap sync

此插件暴露的内容

  • optIn
  • optOut
  • sendScreenName
  • sendTransaction

示例用途

optIn

请参阅上游定义以获取当前合同的定义。

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.optIn();

optOut

请参阅上游定义以获取当前合同的定义。

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.optOut();

sendScreenName

请参阅上游定义以获取当前合同的定义。

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.sendScreenName({} as { name: string });

sendTransaction

请参阅上游定义以获取当前合同的定义。

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.sendTransaction({} as TransactionItem);

完整参考

继续使用 @capgo/capacitor-contentsquare

如果您正在使用 使用 @capgo/capacitor-contentsquare 来规划原生插件工作,连接它与 @capgo/capacitor-contentsquare 查看 @capgo/capacitor-contentsquare 中的实现细节 开始使用 查看开始使用中的实现细节 Capgo 插件目录 查看 Capgo 插件目录中的产品工作流程 Capacitor Capgo 为 Capacitor Capgo 的实现细节 添加或更新插件 为添加或更新插件的实现细节