FoxitPDFSDKforWeb v11.0.1
Foxit PDF SDK for Web
Disposable Class Reference
Inheritance diagram for Disposable:
Annot AnnotationAuthorityManager Appearance Controller CreateAnnotationService CreateFreeTextCalloutService CustomOptionsUpdater FormFillerService IContextMenu IFloatingTooltip IStateHandler PDFDoc PDFForm PDFFormField PDFFormPropertiesService PDFFormPropertiesService PDFViewer ScrollWrap TextSelectionTool

Public Member Functions

 addDestroyHook (...hooks)
 Add a function to destroyHooks list, which will be called during destroy. More...
 
 destroy ()
 
 ownsTo (owner)
 Establishes an ownership relationship where this instance will be destroyed when the owner is destroyed. Additionally, the owner will be automatically removed from the destroyHooks list when this instance is destroyed. More...
 

Detailed Description

Member Function Documentation

◆ addDestroyHook()

Disposable::addDestroyHook (   hooks)
inline

Add a function to destroyHooks list, which will be called during destroy.

Parameters
hooksDisposable|Function
Returns
Function - A function to remove these hooks

◆ destroy()

Disposable::destroy ( )
inline

Destroy this object. All of the destroy hook will be called and cleared.

◆ ownsTo()

Disposable::ownsTo (   owner)
inline

Establishes an ownership relationship where this instance will be destroyed when the owner is destroyed. Additionally, the owner will be automatically removed from the destroyHooks list when this instance is destroyed.

Parameters
ownerDisposable - The owner of this instance
Returns
void
Since
11.0.0

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