跳过内容

@capgo/capacitor-intercom

@Capacitor/__CAPGO_KEEP_1__-intercom

__CAPGO_KEEP_0__

概述

Intercom Capacitor 插件。

  • loadWithKeys - 在运行时使用 API 密钥初始化 Intercom。您可以选择不在 capacitor.config 中配置密钥。
  • registerIdentifiedUser - 使用 userId 或 email 中至少一个注册已知用户。
  • registerUnidentifiedUser - 使用 Intercom 注册匿名用户。
  • updateUser - 在 Intercom 中更新用户属性。
方法描述
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 企业插件替代方案中的产品工作流