Skip to content

Storage Api

deleteValue(pluginName, key): void

Removes a value which has been saved

ParameterType
pluginNamestring
keystring

void


getValue(pluginName, key, defaultValue?): any

Gets a value that has previously been saved

ParameterType
pluginNamestring
keystring
defaultValue?any

any


offAllChanges(pluginName): void

Removes all listeners added by onChange for a certain plugin

ParameterType
pluginNamestring

void


offChange(pluginName, key, callback): void

Removes a listener added by onChange

ParameterType
pluginNamestring
keystring
callback(value, remote) => void

void


onChange(pluginName, key, callback): () => void

Adds a listener for when a plugin’s stored value with a certain key changes

ParameterType
pluginNamestring
keystring
callback(value, remote) => void

Function

void


setValue(pluginName, key, value): void

Sets a value which can be retrieved later, through reloads

ParameterType
pluginNamestring
keystring
valueany

void