FoxitPDFSDKforWeb v12.0.0
Foxit PDF SDK for Web
IndexedDBStorageDriver Class Reference

The default built-in storage driver solution based on IndexedDB since 9.2.0. More...

Inheritance diagram for IndexedDBStorageDriver:
StorageDriver

Additional Inherited Members

- Public Member Functions inherited from StorageDriver
Promise< void > close ()
 Closes the storage driver. More...
 
pubic Promise< T|null > get< T > (context:StorageContext, key:string)
 Retrieves the value associated with the specified key in the storage space. T The type of the value to retrieve. More...
 
Promise< Record< string, any > > getAll (context:StorageContext)
 Retrieves all the data stored in the specified storage space. More...
 
Function onChange< T > (callback:(event:StorageDriverChangeEvent< T >)=> void)
 Subscribes to storage change events and invokes the callback function whenever a change occurs. T - The type of value. More...
 
Function onRemove (callback:(event:StorageDriverRemoveEvent)=> void)
 Subscribes to storage remove events and invokes the callback function whenever a remove event occurs. More...
 
Promise< void > remove (context:StorageContext, key:string)
 Removes the value associated with the specified key in the storage space. More...
 
Promise< void > removeAll (context:StorageContext)
 Removes all data stored in the specified storage space. More...
 
Promise< void > set< T > (context:StorageContext, key:string, value:T)
 Store/Overwrite the value associated with the specified key in the storage space. T - The type of the value to store. More...
 
- Public Attributes inherited from StorageDriver
boolean isClosed
 Gets the current status of the storage driver, indicating whether it is closed or not. More...
 

Detailed Description

The default built-in storage driver solution based on IndexedDB since 9.2.0.

Since
9.2.0

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