Paket | spark.managers |
Klass | public class PersistenceManager |
Arv | PersistenceManager Object |
Implementerar | IPersistenceManager |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | 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.
Relaterade API-element
Metod | Definieras med | ||
---|---|---|---|
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 | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Initializes the persistence manager. | PersistenceManager | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | 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 | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
PersistenceManager | () | Konstruktor |
public function PersistenceManager()
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | AIR 2.5 |
Constructor.
clear | () | metod |
public function clear():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | AIR 2.5 |
Clears all the data that is being stored by the persistence manager.
getProperty | () | metod |
public function getProperty(key:String):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | AIR 2.5 |
Returns the value of a property stored in the persistence manager. Properties are saved as key:value pairs.
Parametrar
key:String — The property key.
|
Object — The value of a property stored in the persistence manager.
|
load | () | metod |
save | () | metod |
setProperty | () | metod |
public function setProperty(key:String, value:Object):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | AIR 2.5 |
Stores a value in the persistence manager. Properties are saved as key:value pairs.
Parametrar
key:String — The key to use to store the value.
| |
value:Object — The value object to store.
|
Tue Jun 12 2018, 01:40 PM Z