FoxitPDFSDKforWeb  v9.2.1
Foxit PDF SDK for Web
ActionCallbackManager Class Reference

Action callback manager class, It used to control customized action callbacks. It can be obtained via PDFViewer::getActionCallbackManager() method. More...

Public Member Functions

 setEmbeddedGotoCallback (callback)
 Set the EmbeddedGoto action callback. More...
 

Detailed Description

Action callback manager class, It used to control customized action callbacks. It can be obtained via PDFViewer::getActionCallbackManager() method.

Since
9.1.0

Member Function Documentation

◆ setEmbeddedGotoCallback()

ActionCallbackManager::setEmbeddedGotoCallback (   callback)
inline

Set the EmbeddedGoto action callback.

Parameters
callback(EmbeddedGotoAction)=>Promise<void> - The callback when the action is activated.
Returns
void -
Since
9.1.0
Example:
function example (pdfViewer) {
const actionCallbackMgr = pdfViewer.getActionCallbackManager();
actionCallbackMgr.setEmbeddedGotoCallback(function(action) {
//do something with action's information
return Promise.resolve();
})
}

Foxit Software Corporation Logo
@2023 Foxit Software Incorporated. All rights reserved.