Storage
Key-value storage interface for persisting SDK preferences and state.
Methods
clear()
Clears all keys in the given scope. Implementations may scope the clear to SDK keys only.
Parameters
scope
Storage scope (e.g. session vs. persistent).
Returns
Promise<void>
getItem()
Parameters
key
Storage key to read or write.
scope
Storage scope (e.g. session vs. persistent).
Returns
Promise<string | null>
removeItem()
Parameters
key
Storage key to read or write.
scope
Storage scope (e.g. session vs. persistent).
Returns
Promise<void>
setItem()
Parameters
key
Storage key to read or write.
value
Value to write, or null to clear the key.
scope
Storage scope (e.g. session vs. persistent).
Returns
Promise<void>