Methods
Abstract
delete
- delete<K>(key): Promise<void>
-
Returns Promise<void>
Abstract
get
- get<K>(key): Promise<StorageKeyReturnType[K]>
-
Abstract
getPrefixedKey
- getPrefixedKey<K>(key): string
-
Returns string
Abstract
set
- set<K>(key, value): Promise<void>
-
Returns Promise<void>
Abstract
subscribeToStorageChanged
- subscribeToStorageChanged(callback): Promise<void>
-
Parameters
-
callback: ((arg) => {})
-
- (arg): {}
-
Parameters
-
arg: {
eventType: "storageCleared" | "entryModified";
key: null | string;
newValue: null | string;
oldValue: null | string;
}
-
eventType: "storageCleared" | "entryModified"
-
key: null | string
-
newValue: null | string
-
oldValue: null | string
Returns {}
Returns Promise<void>
Static
isSupported
- isSupported(): Promise<boolean>
-
Returns Promise<boolean>
Internalapi
The storage used in the SDK