cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LocalStorage.h File Reference
#include <string>
#include "CCPlatformMacros.h"

Functions

void CC_DLL  (const std::string &fullpath="")
 Local Storage support for the JS Bindings. More...
 
void CC_DLL  ()
 Frees the allocated resources. More...
 
void CC_DLL  (const std::string &key, const std::string &value)
 Sets an item in the JS. More...
 
var  ( var key, var value)
 Sets an item in the JS. More...
 
local  ( local key, local value)
 Sets an item in the JS. More...
 
std::string CC_DLL  (const std::string &key)
 Gets an item from the JS. More...
 
void CC_DLL  (const std::string &key)
 Removes an item from the JS. More...
 

Function Documentation

std::string CC_DLL
localStorageGetItem
( const std::string &  key)

Gets an item from the JS.

var localStorageGetItem ( var  key)

Gets an item from the JS.

local localStorageGetItem ( local  key)

Gets an item from the JS.

void CC_DLL localStorageRemoveItem ( const std::string &  key)

Removes an item from the JS.

var localStorageRemoveItem ( var  key)

Removes an item from the JS.

local localStorageRemoveItem ( local  key)

Removes an item from the JS.