您位於此處:
disable關閉和 enable關閉函數
關閉功能可控制當使用者選取「造訪」按鈕時,如何關閉與處理簡報播放程式。這些函數會在「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.