套件 | com.adobe.gravity.utility.async |
類別 | public class Token |
繼承 | Token Object |
實作 | IToken |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Success handlers take an arbitrary number of parameters. The number and type of the parameters depend on the API that returns the token; the API documentation will generally indicate what to expect. Fault handlers must take a single parameter of type Error.
公用方法
方法 | 定義自 | ||
---|---|---|---|
Token()
Constructor. | Token | ||
Add a handler to be called if the operation fails. | Token | ||
Add a handler to be called if the operation succeeds. | Token | ||
Call all the fault handlers with the provided error object. | Token | ||
Call all the fault handlers with an Error created from the provided ErrorEvent object. | Token | ||
Call all the success handlers with the provided parameters. | Token | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Remove a fault handler. | Token | ||
Remove a success handler. | Token | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
建構函式詳細資料
Token | () | 建構函式 |
public function Token()
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Constructor.
方法詳細資訊
addFaultHandler | () | 方法 |
public function addFaultHandler(handler:Function, weakReference:Boolean = false):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation fails.
參數
handler:Function — A function to be called if the operation fails.
| |
weakReference:Boolean (default = false ) — Use a weak reference to hold onto the handler.
|
addSuccessHandler | () | 方法 |
public function addSuccessHandler(handler:Function, weakReference:Boolean = false):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation succeeds.
參數
handler:Function — A function to be called if the operation succeeds.
| |
weakReference:Boolean (default = false ) — Use a weak reference to hold onto the handler.
|
callFaultHandlers | () | 方法 |
callFaultHandlersViaErrorEvent | () | 方法 |
public function callFaultHandlersViaErrorEvent(errorEvent:ErrorEvent):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Call all the fault handlers with an Error created from the provided ErrorEvent object. This is equivalent to
callFaultHandlers(new Error(errorEvent.text));
參數
errorEvent:ErrorEvent — The error event.
|
callSuccessHandlers | () | 方法 |
public function callSuccessHandlers(... params):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Call all the success handlers with the provided parameters.
參數
... params — Zero or more parameters to be passed verbatim to any success handlers that have been added.
|
removeFaultHandler | () | 方法 |
removeSuccessHandler | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z