| FoxitPDFSDKforWeb v11.0.5 Archives Foxit PDF SDK for Web

Public Member Functions | List of all members
ActionCallback Interface Reference
PDFViewCtrl » pdfjs

An interface represents a action callback class for performing PDF actions. Users can implement only part of the callbacks according to actual requirements. More...

## Public Member Functions
number | alert (options)
| A callback function used to pop up a dialog to show warnings or hints. This callback function is optional, so it can not be overrided. More...
| constructor (app, pdfViewer)

## Detailed Description

An interface represents a action callback class for performing PDF actions. Users can implement only part of the callbacks according to actual requirements.

Since
  7.6.0

See also
  PDFViewer.setActionCallback

## Member Function Documentation

## ◆ alert()

number ActionCallback::alert | ( | options |  | ) |

A callback function used to pop up a dialog to show warnings or hints. This callback function is optional, so it can not be overrided.

Parameters

  options | AlertOptions

Returns
  number - The return value should be one of following values:
  - 1: OK;
  - 2: Cancel;
  - 3: NO;
  - 4: Yes;

## ◆ constructor()

ActionCallback::constructor | ( | app | ,
|  | pdfViewer |
| ) |  |

Parameters

  app | object internal app object
  pdfViewer | PDFViewer

@2025 Foxit Software Incorporated. All rights reserved.