Core Docs | Additional Modules Docs

sb.sharedObject


@Description: gives javascript access to the flash storage
@File: sharedObject.js
@Author: Paul Visco

sb.sharedObject.clear


@Description: clears data for a specific key in the sharedObject
@File: sharedObject.js
@Param: string key The name of the stored data
@Example:
sb.sharedObject.clear('friend');

sb.sharedObject.clearAll


@Description: clears all data stored in the sharedObject
@File: sharedObject.js
@Example:
sb.sharedObject.clearAll();

sb.sharedObject.get


@Description: get data from the sharedObject
@File: sharedObject.js
@Param: string key The name of the stored data
@Example:
sb.sharedObject.get('friend');

sb.sharedObject.load


@Description: gets data from the sharedObject, alias for this.load for backwards compat
@File: sharedObject.js
@Param: string key The name of the stored data
@Example:
sb.sharedObject.load('friend');

sb.sharedObject.save


@Description: saves data in the sharedObject
@File: sharedObject.js
@Param: string key The name of the stored data
@Param: string val The value to store
@Example:
sb.sharedObject.save('friend', 'paul');

sb.sharedObject.save


@Description: saves data in the sharedObject
@File: sharedObject.js
@Param: string key The name of the stored data
@Param: string val The value to store
@Example:
sb.sharedObject.set('friend', 'paul');

sb.sharedObject.typeOf


@Description: returns the typeOf for easier integration with sb.storage
@File: sharedObject.js
@Example:
sb.sharedObject.typeOf();