跳过内容

@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 中更新用户属性。
方法描述
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.tscapacitor-intercom.

继续从 @capgo/capacitor-intercom

标题:继续从 @capgo/capacitor-intercom

如果您正在使用 @capgo/capacitor-intercom 来规划原生插件工作,连接它与 使用@capgo/capacitor-intercom 为@capgo/capacitor-intercom原生能力 Capgo 插件目录 为Capgo 插件目录中的产品工作流 Capacitor 由Capgo提供的插件 为Capacitor 由Capgo提供的插件中的实现细节 添加或更新插件 为添加或更新插件中的实现细节,并 Ionic 企业插件替代方案 为Ionic 企业插件替代方案中的产品工作流