Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
Storage

Functions

void localStorageInit (const std::string &fullpath="")
 Local Storage support for the JS Bindings. More...
 
void localStorageFree ()
 Frees the allocated resources.
 
void localStorageSetItem (const std::string &key, const std::string &value)
 Sets an item in the JS.
 
bool localStorageGetItem (const std::string &key, std::string *outItem)
 Gets an item from the JS.
 
void localStorageRemoveItem (const std::string &key)
 Removes an item from the JS.
 
void localStorageClear ()
 Removes all items from the JS.
 

Detailed Description

Function Documentation

void localStorageInit ( const std::string &  fullpath = "")

Local Storage support for the JS Bindings.

Initializes the database. If path is null, it will create an in-memory DB.

var localStorageInit ( var  fullpath = "")

Local Storage support for the JS Bindings.

Initializes the database. If path is null, it will create an in-memory DB.

local localStorageInit ( local  fullpath = "")

Local Storage support for the JS Bindings.

Initializes the database. If path is null, it will create an in-memory DB.