概述
概述部分Intercom Capacitor 插件
loadWithKeys- 在运行时使用 API 密钥初始化 Intercom。使用此选项如果您不想在 capacitor.config 中配置密钥。registerIdentifiedUser- 使用 userId 或 email 中至少一个注册已知用户与 Intercom。registerUnidentifiedUser- 使用 Intercom 注册匿名用户。updateUser- 在 Intercom 中更新用户属性。
Public API
Public API| 方法 | 描述 |
|---|---|
loadWithKeys | 在运行时使用 API 密钥初始化 Intercom。使用此选项如果您不想在 capacitor.config 中配置密钥。 |
registerIdentifiedUser | 使用 userId 或 email 中至少一个注册已知用户与 Intercom。 |
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 Enterprise 插件替代方案 了解 Ionic Enterprise 插件替代方案的产品工作流程