您在此处:
disableDismiss 和 enableDismiss 函数
关闭功能控制当用户选择访问按钮时如何关闭和处理演示播放器。这些函数在“returntovisitbuttonpress”事件处理器中执行长期操作。

使用更普遍的搜索词。
选择更少的筛选器,并扩大搜索范围。
关闭功能控制当用户选择访问按钮时如何关闭和处理演示播放器。这些函数在“returntovisitbuttonpress”事件处理器中执行长期操作。
| 适用于:Lightning Experience |
| 适用于:具有Life Sciences Cloud、Life Sciences Cloud for Customer Engagement加载项许可证和Life Sciences Customer Engagement受管软件包的Enterprise 和 Unlimited Edition。 |
只有 Life Sciences Cloud 移动应用程序支持此功能。
为了防止演示播放器在用户选择访问按钮后立即关闭,请在执行查询或更新插入等长期数据库操作之前调用PresentationPlayer.disableDismiss()函数。
要通知并关闭演示播放器,请在长期操作完成后调用PresentationPlayer.enableDismiss()函数。如果未在 30 秒内调用PresentationPlayer.enableDismiss(),演示播放器将自动关闭。
PresentationPlayer.disableDismiss()和PresentationPlayer.enableDismiss()功能仅控制在演示播放器中打开的演示。当用户选择访问按钮时,'returntovisitbuttonpress'事件也仅发送到当前打开的演示文稿。
要在一个演示会话期间保存来自多个演示的数据,用户可以在演示自定义演示后选择访问按钮。为当前演示文稿触发'returntovisitbuttonpress'事件,并执行任何更新插入请求。在打开访问后,用户可以使用“返回演示”链接返回到相同的演示会话。
例如,用户在演示播放器中打开自定义演示。当页面打开时,在'viewappearing'事件期间调用PresentationPlayer.disableDismiss()函数,以防止在长时间运行的操作进行时玩家被解雇。
在用户完成演示并选择访问按钮后,将触发'returntovisitbuttonpress'事件,演示将执行长时间运行的数据库操作,例如获取或更新插入数据。在这些操作完成后,调用PresentationPlayer.enableDismiss()函数来关闭演示播放器。

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.