Creates an instance of the KeyValue class.
Gets a value from a content in storage
File name
Key
The value for the given key
// example
const keyValue = new broox.mediaPlayer.KeyValue();
const user = keyValue.get('testApp', 'profile');
console.log('User', user);
Sets a value in storage
File name
Key assigned to the value to store
Value to store
// example
const user = {
firstName: 'John',
lastName: 'Doe'
};
const keyValue = new broox.mediaPlayer.KeyValue();
keyValue.set('testApp', 'profile', user);
Generated using TypeDoc
Stores and retrieves values in json format. Allows to persist data and be able to retrieve it after the media changes or the Media Player is reloaded. It can be useful for persisting configuration parameters modified at runtime. A project name and a key need to be specified in order to store and retrieve the data.