foxit::common::NotifierCallback Class Referenceabstract

Public Member Functions

virtual void OnOutOfMemory ()=0
 A callback function used to notify application when Foxit PDF SDK runs out of memory. More...
 
virtual void Release ()=0
 A callback function used to release current NotifierCallback object itself. More...
 

Detailed Description

This class represents a callback object to notify the Foxit PDF SDK events. All the pure virtual functions in this class are used as callback functions and should be implemented by user. An implemented NotifierCallback object can be set to Foxit PDF SDK by function Library::SetNotifierCallback.

See also
Library

Member Function Documentation

◆ OnOutOfMemory()

virtual void foxit::common::NotifierCallback::OnOutOfMemory ( )
pure virtual

A callback function used to notify application when Foxit PDF SDK runs out of memory.

When this callback function is triggered, that means Foxit PDF SDK runs out of memory. At this moment, application cannot use any API in Foxit PDF SDK. In this case, application can exit with some warning information, or application is aborted and tried to restart. Here, "restart an application" does not mean to call function Library::Reinitialize but to call function Library::Initialize again to load Foxit PDF SDK again from the beginning.

Returns
None.

◆ Release()

virtual void foxit::common::NotifierCallback::Release ( )
pure virtual

A callback function used to release current NotifierCallback object itself.

Returns
None.

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