概述
概述Intercom Capacitor 插件。
核心功能
核心功能loadWithKeys- 在运行时使用 API keys 初始化 Intercom。使用此选项以避免在 capacitor.config 中配置密钥。registerIdentifiedUser- 使用 userId 或 email 中至少一个注册已知用户。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 | __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.ts 在 capacitor-联络工具.