@capgo/capacitor-intercom
@Capacitor/__CAPGO_KEEP_1__-intercom
__CAPGO_KEEP_0__
概述Intercom Capacitor 插件。
核心功能
标题:核心功能loadWithKeys- 在运行时使用 API 密钥初始化 Intercom。 如果您不想在 capacitor.config 中配置密钥,请使用此选项。registerIdentifiedUser- 使用 userId 或 email 中至少一个注册已知用户到 Intercom。registerUnidentifiedUser- 使用 Intercom 注册匿名用户。updateUser- 在 Intercom 中更新用户属性。
公共 API
标题:公共 API| 方法 | 描述 |
|---|---|
loadWithKeys | - 在运行时使用 API 密钥初始化 Intercom。 如果您不想在 capacitor.config 中配置密钥,请使用此选项。 |
registerIdentifiedUser | 在 Intercom 中注册已知用户。至少需要提供 userId 或 email 中的一个。 |
registerUnidentifiedUser | 在 Intercom 中注册匿名用户。 |
updateUser | 在 Intercom 中更新用户属性。 |
logout | 在 Intercom 中注销用户。 |
logEvent | 在 Intercom 中记录自定义事件。 |
displayMessenger | 打开 Intercom 消息器。 |
displayMessageComposer | 打开带有预填写消息的消息编辑器。 |
displayHelpCenter | 打开 Intercom 帮助中心。 |
hideMessenger | 隐藏 Intercom 消息器。 |
displayLauncher | 显示 Intercom 启动按钮。 |
hideLauncher | 隐藏 Intercom 启动按钮。 |
displayInAppMessages | 在应用中启用 Intercom 的消息推送。 |
hideInAppMessages | 关闭 Intercom 应用内消息。 |
displayCarousel | 显示特定的 Intercom 轮播。 |
displayArticle | 显示特定的 Intercom 文章。 |
displaySurvey | 显示特定的 Intercom 问卷。 |
setUserHash | 设置身份验证的 HMAC 值。 |
setUserJwt | 设置安全消息器的 JWT 值。 |
setBottomPadding | 设置 Intercom 消息器 UI 的底部内边距。 |
sendPushTokenToIntercom | 将推送通知令牌发送到 Intercom。 |
receivePush | 处理接收到的 Intercom 推送通知。 |
getUnreadConversationCount | 获取当前用户的未读对话数。 |
addListener | 监听 Intercom 窗口显示事件。 |
addListener | 监听 Intercom 窗口隐藏事件。 |
addListener | 监听未读会话数量的变化。 |
removeAllListeners | 移除所有事件监听器。 |
真实数据来源
真实数据来源此参考资料是从 src/definitions.ts 在 capacitor-intercom.
从@capgo/capacitor-intercom继续
标题:从@capgo/capacitor-intercom继续如果您正在使用 @capgo/capacitor-intercom 来规划原生插件工作,连接它 使用@capgo/capacitor-intercom 为@capgo/capacitor-intercom原生能力 Capgo 插件目录 为Capgo 插件目录中的产品工作流 Capacitor 由Capgo的插件 为Capacitor 由Capgo的插件中的实现细节 添加或更新插件 为添加或更新插件中的实现细节 Ionic 企业插件替代品 为Ionic 企业插件替代品中的产品工作流