套件 | spark.managers |
類別 | public class PersistenceManager |
繼承 | PersistenceManager Object |
實作 | IPersistenceManager |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | 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.
相關 API 元素
flash.utils.IExternalizable
公用方法
方法 | 定義自 | ||
---|---|---|---|
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 | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
Initializes the persistence manager. | PersistenceManager | ||
指出指定的屬性是否存在,以及是否可列舉。 | 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 | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
建構函式詳細資料
PersistenceManager | () | 建構函式 |
public function PersistenceManager()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | AIR 2.5 |
Constructor.
方法詳細資訊
clear | () | 方法 |
public function clear():void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | AIR 2.5 |
Clears all the data that is being stored by the persistence manager.
getProperty | () | 方法 |
public function getProperty(key:String):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | AIR 2.5 |
Returns the value of a property stored in the persistence manager. Properties are saved as key:value pairs.
參數
key:String — The property key.
|
Object — The value of a property stored in the persistence manager.
|
load | () | 方法 |
save | () | 方法 |
setProperty | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z