|
FoxitPDFSDKforWeb v11.0.4
Foxit PDF SDK for Web
|
The default built-in storage driver solution based on IndexedDB since 9.2.0. More...
Public Member Functions | |
| async | 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... | |
| async | getAll (context:StorageContext) |
| Retrieves all the data stored in the specified storage space. More... | |
| 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... | |
| onRemove (callback:(event:StorageDriverRemoveEvent)=> void) | |
| Subscribes to storage remove events and invokes the callback function whenever a remove event occurs. More... | |
| async | removeAll (context:StorageContext) |
| Removes all data stored in the specified storage space. More... | |
| async | set< T > (context:StorageContext, key:string, newValue:T) |
| Store/Overwrite the value associated with the specified key in the storage space. T - The type of the value to store. More... | |
Public Member Functions inherited from StorageDriver | |
| Promise< void > | close () |
| Closes the storage driver. More... | |
| Promise< void > | remove (context:StorageContext, key:string) |
| Removes the value associated with the specified key in the storage space. More... | |
Additional Inherited Members | |
Public Attributes inherited from StorageDriver | |
| boolean | isClosed |
| Gets the current status of the storage driver, indicating whether it is closed or not. More... | |
The default built-in storage driver solution based on IndexedDB since 9.2.0.
|
inline |
Retrieves the value associated with the specified key in the storage space. T The type of the value to retrieve.
| context | StorageContext - The storage context, partitioning strategies based on the context's content. |
| key | string - The key of the value to retrieve. |
Implements StorageDriver.
|
inline |
Retrieves all the data stored in the specified storage space.
| context | StorageContext - The storage context, partitioning strategies based on the context's content. |
Implements StorageDriver.
|
inline |
Subscribes to storage change events and invokes the callback function whenever a change occurs. T - The type of value.
| callback | (event:StorageDriverChangeEvent<T>)=>void - The callback function to handle storage change events |
Implements StorageDriver.
|
inline |
Subscribes to storage remove events and invokes the callback function whenever a remove event occurs.
| callback | (event:StorageDriverRemoveEvent)=>void - The callback function to handle storage remove events. |
Implements StorageDriver.
|
inline |
Removes all data stored in the specified storage space.
| context | StorageContext - The storage context, partitioning strategies based on the context's content. |
Implements StorageDriver.
|
inline |
Store/Overwrite the value associated with the specified key in the storage space. T - The type of the value to store.
| context | StorageContext - The storage context, partitioning strategies based on the context's content. |
| key | string - The key of the value to store. |
| value | T - The value to store. |
Implements StorageDriver.