mautilus / sdk

MAUTILUS SmartTV SDK
BSD 3-Clause "New" or "Revised" License
98 stars 43 forks source link

store array in storage #48

Closed naja7host closed 5 years ago

naja7host commented 6 years ago

WhT is the best approuch to store an array with the storage plugin ?

radimbuchtela commented 6 years ago

Hi naja7host, you can use Storage object from SDK: http://smarttv.mautilus.com/SDK/#!/api/Storage

var array = [1, 2, 3];
Storage.set("myArray", array);  // to store your array

var storedArray = Storage.get("myArray");  // to receive your array

Regards, Radim