Package | spark.managers |
Class | public class PersistenceManager |
Inheritance | PersistenceManager Object |
Implements | IPersistenceManager |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | AIR 2.5 |
When storing values using the manager, it is important that all values can be properly be written to a shared object. Complex objects that store classes or non-standard flash primitives must implement flash.net.IExternalizable interface to work properly. Saving incompatible objects does not cause an RTE, but creates undefined behavior when the data is read back.
Related API Elements
Method | Defined By | ||
---|---|---|---|
Constructor. | PersistenceManager | ||
Clears all the data that is being stored by the persistence
manager. | PersistenceManager | ||
Returns the value of a property stored in the persistence manager. | PersistenceManager | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Initializes the persistence manager. | PersistenceManager | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Flushes the data being managed by the persistence manager to
disk, or to another external storage file. | PersistenceManager | ||
Stores a value in the persistence manager. | PersistenceManager | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
PersistenceManager | () | Constructor |
public function PersistenceManager()
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | AIR 2.5 |
Constructor.
clear | () | method |
public function clear():void
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | AIR 2.5 |
Clears all the data that is being stored by the persistence manager.
getProperty | () | method |
public function getProperty(key:String):Object
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | AIR 2.5 |
Returns the value of a property stored in the persistence manager. Properties are saved as key:value pairs.
Parameters
key:String — The property key.
|
Object — The value of a property stored in the persistence manager.
|
load | () | method |
save | () | method |
setProperty | () | method |
public function setProperty(key:String, value:Object):void
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | AIR 2.5 |
Stores a value in the persistence manager. Properties are saved as key:value pairs.
Parameters
key:String — The key to use to store the value.
| |
value:Object — The value object to store.
|
Thu Dec 6 2018, 01:12 PM -08:00