使用@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/
继续使用@capgo/capacitor-contentsquare
如果您正在使用 使用@capgo/capacitor-contentsquare 来规划原生插件工作,连接它与 @capgo/capacitor-contentsquare 来获取@capgo/capacitor-contentsquare中的实现细节 开始使用 获取开始使用中的实现细节 Capgo 插件目录 获取Capgo 插件目录中的产品工作流程, Capacitor Capgo 为 Capacitor Capgo 的实现细节 添加或更新插件 添加或更新插件的实现细节。