Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Callback Event Function

          Callback Event Function

          When an event occurs in the Life Sciences Cloud mobile app, you can use a callback event function to notify the page’s JavaScript, HTML, or template. For example, events can be triggered when users pause or resume tracking presentation metrics.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise and Unlimited Editions with Life Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the Life Sciences Customer Engagement managed package.

          Syntax

          PresentationPlayer.registerEventListener(iOS_event, myCustomPlayerHandler)

          Arguments

          Argument Description
          iOS_event

          The event that occurs on iOS. These events are supported.

          • 'cancelbuttonpress': The event is triggered when users select the Cancel button.
          • 'pausebuttonpress': The event is triggered when users select the Pause button to stop tracking presentation metrics.
          • 'playbuttonpress': The event is triggered when users select the Play button to resume tracking presentation metrics.
          • 'returntovisitbuttonpress': The event is triggered when users select the Visit button.
          • 'viewappearing': The event is triggered when a page is opened.
          • 'viewdisappearing': The event is triggered when a page is closed.
          • 'surveyflowjsonloaded': The event is triggered when the PresentationPlayer.getSurveyFlowJson() function is called.
          • 'surveyflowjsonpassedtovisit': The event is triggered just before a visit is opened.
          myCustomPlayerHandler Your custom JavaScript function.
           
          Loading
          Salesforce Help | Article