使用 @capgo/capacitor-contentsquare
内部原生桥接协议由 Capacitor 实现
安装
bun add @capgo/capacitor-contentsquare
bunx cap sync
此插件暴露的内容
optInoptOutsendScreenNamesendTransaction
示例使用
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);
完整参考
- GitHub: https://github.com/Cap-go/capacitor-contentsquare/
- 文档:/docs/plugins/contentsquare/
继续阅读 Using @capgo/capacitor-contentsquare
如果您正在使用 使用 @capgo/capacitor-contentsquare 来规划原生插件工作,连接它与 @capgo/capacitor-contentsquare 查看 @capgo/capacitor-contentsquare 中的实现细节 开始使用 查看开始使用中的实现细节 Capgo 插件目录 查看 Capgo 插件目录中的产品工作流程 Capacitor 插件由 Capgo 提供 为 Capacitor 插件由 Capgo 提供的实现细节, 添加或更新插件 为添加或更新插件的实现细节,