FoxitPDFSDKforWeb
v9.1.0
Foxit PDF SDK for Web
|
The default built-in storage driver solution based on localStorage. 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... | |
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... | |
async | remove (context:StorageContext, key:string) |
Removes the value associated with the specified key in the storage space. More... | |
async | removeAll (context:StorageContext) |
Removes all data stored in the specified storage space. More... | |
async | 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... | |
![]() | |
Promise< Record< string, any > > | getAll (context:StorageContext) |
Retrieves all the data stored in the specified storage space. More... | |
Function | onRemove (callback:(event:StorageDriverRemoveEvent)=> void) |
Subscribes to storage remove events and invokes the callback function whenever a remove event occurs. More... | |
The default built-in storage driver solution based on localStorage.
|
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 |
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 |
Removes the value associated with the specified key in the storage space.
context | StorageContext - The storage context, partitioning strategies based on the context's content. |
key | string - The key of the value to remove. |
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.