| FoxitPDFSDKforWeb v11.0.5 Archives Foxit PDF SDK for Web

Public Member Functions | List of all members
Disposable Class Reference
PDFViewCtrl
Inheritance diagram for Disposable:

## 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

Disposable

## Member Function Documentation

## ◆ addDestroyHook()

Disposable::addDestroyHook | ( |  | hooks | ) |
| inline

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

Parameters

  hooks | Disposable|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

  owner | Disposable - The owner of this instance

Returns
  void

Since
  11.0.0

@2025 Foxit Software Incorporated. All rights reserved.