public abstract class IApp
extends java.lang.Object
IApp
represents an application callback handler.
This is a handler and is implemented by caller. It's used to expand functions
of Foxit PDF SDK, or get events from Foxit PDF SDK.
It's specially designed for higher-level controls in Foxit PDF SDK.
Currently, it only used for application to recover the "state" after the out of
memory occurred.
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
clientData
User-defined data.
|
Constructor and Description |
---|
IApp() |
Modifier and Type | Method and Description |
---|---|
abstract void |
onRecover(java.lang.Object clientData,
PDFDocument document)
Callback function to recover the previous operations when Foxit PDF SDK
is out of memory.
|
public java.lang.Object clientData
Caller can use this field to track controls.
public abstract void onRecover(java.lang.Object clientData, PDFDocument document) throws PDFException
When Foxit PDF SDK ran out of memory, applications need to call
function to
trigger this callback function to recover the operations which Foxit PDF
SDK can not be recovered. Typically applications will get a return value
PDFLibrary.oomRecover(PDFDocument)
clientData
- A user-defined data.document
- A PDFDocument
object.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFLibrary
,
PDFException
,
PDFDocument
,
Progress