Loading
目录
选择筛选器

          没有结果
          没有结果
          以下是一些搜索提示

          检查关键字的拼写。
          使用更普遍的搜索词。
          选择更少的筛选器,并扩大搜索范围。

          搜索所有 Salesforce 帮助
          回调事件函数

          回调事件函数

          当事件在 Life Sciences Cloud 移动应用程序中发生时,您可以使用回调事件函数通知页面的 JavaScript、HTML 或模板。例如,事件可以在用户暂停或恢复跟踪演示度量时触发。

          所需的 Edition

          适用于:Lightning Experience
          适用于:具有Life Sciences Cloud、Life Sciences Cloud for Customer Engagement加载项许可证和Life Sciences Customer Engagement受管软件包的EnterpriseUnlimited Edition。

          语法

          PresentationPlayer.registerEventListener(iOS_event, myCustomPlayerHandler)

          参数

          参数 说明
          iOS_event

          iOS 上发生的事件。支持这些事件。

          • 'cancelbuttonpress':当用户选择“取消”按钮时触发该事件。
          • 'pausebuttonpress':当用户选择暂停按钮停止跟踪演示度量时,会触发该事件。
          • 'playbuttonpress':当用户选择播放按钮以恢复跟踪演示度量时,会触发该事件。
          • 'returntovisitbuttonpress':当用户选择“访问”按钮时触发该事件。
          • 'viewappearing':事件会在页面打开时触发。
          • 'viewdisappearing':事件会在页面关闭时触发。
          • 'surveyflowjsonloaded':事件会在调用 PresentationPlayer.getSurveyFlowJson() 函数时触发。
          • 'surveyflowjsonpassedtovisit':该事件在访问打开前触发。
          myCustomPlayerHandler 您的自定义 JavaScript 函数。
           
          正在加载
          Salesforce Help | Article