跳过内容

@capgo/capacitor-intercom

Intercom Capacitor 插件。

概述

概述

Intercom Capacitor 插件。

核心功能

核心功能
  • loadWithKeys - 在运行时使用 API keys 初始化 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__CAPGO_KEEP_0__
displayHelpCenter打开预填写的消息编辑器。
hideMessenger打开Intercom帮助中心。
displayLauncher隐藏Intercom消息窗口。
hideLauncher显示Intercom启动按钮。
displayInAppMessages隐藏Intercom启动按钮。
hideInAppMessages启用Intercom在应用内消息。
displayCarousel禁用Intercom在应用内消息。
displayArticle显示特定的Intercom幻灯片。
displaySurvey显示特定的Intercom文章。
setUserHash显示特定的Intercom调查。
setUserJwt设置身份验证的HMAC。
setBottomPadding设置 Intercom 消息 UI 底部填充。
sendPushTokenToIntercom将推送通知令牌发送到 Intercom。
receivePush处理接收到的 Intercom 推送通知。
getUnreadConversationCount获取当前用户未读会话的数量。
addListener监听 Intercom 窗口显示时的事件。
addListener监听 Intercom 窗口隐藏时的事件。
addListener监听未读会话数量的变化。
removeAllListeners移除所有事件监听器。

真实数据来源

标题:真实数据来源

此参考资料是从 src/definitions.tscapacitor-联络工具.