Paket | com.adobe.gravity.utility.async |
Klasse | public class Token |
Vererbung | Token Object |
Implementiert | IToken |
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10 |
Laufzeitversionen: | 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.
Methode | Definiert von | ||
---|---|---|---|
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 | ||
Gibt an, ob für ein Objekt eine bestimmte Eigenschaft definiert wurde. | Object | ||
Gibt an, ob eine Instanz der Object-Klasse in der Prototypkette des Objekts vorhanden ist, das als Parameter angegeben wurde. | Object | ||
Gibt an, ob die angegebene Eigenschaft vorhanden ist und durchlaufen werden kann. | Object | ||
Remove a fault handler. | Token | ||
Remove a success handler. | Token | ||
Legt die Verfügbarkeit einer dynamischen Eigenschaft für Schleifenoperationen fest. | Object | ||
Gibt die Stringdarstellung dieses Objekts zurück, formatiert entsprechend den Konventionen des Gebietsschemas. | Object | ||
Gibt das angegebene Objekt als String zurück. | Object | ||
Gibt den Grundwert des angegebenen Objekts zurück. | Object |
Token | () | Konstruktor |
public function Token()
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10 |
Laufzeitversionen: | AIR 1.1, Flash Player 9 |
Constructor.
addFaultHandler | () | Methode |
public function addFaultHandler(handler:Function, weakReference:Boolean = false):void
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10 |
Laufzeitversionen: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation fails.
Parameter
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 | () | Methode |
public function addSuccessHandler(handler:Function, weakReference:Boolean = false):void
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10 |
Laufzeitversionen: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation succeeds.
Parameter
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 | () | Methode |
public function callFaultHandlers(error:Error):void
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10 |
Laufzeitversionen: | AIR 1.1, Flash Player 9 |
Call all the fault handlers with the provided error object.
Parameter
error:Error — The error object.
|
callFaultHandlersViaErrorEvent | () | Methode |
public function callFaultHandlersViaErrorEvent(errorEvent:ErrorEvent):void
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10 |
Laufzeitversionen: | 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));
Parameter
errorEvent:ErrorEvent — The error event.
|
callSuccessHandlers | () | Methode |
public function callSuccessHandlers(... params):void
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10 |
Laufzeitversionen: | AIR 1.1, Flash Player 9 |
Call all the success handlers with the provided parameters.
Parameter
... params — Zero or more parameters to be passed verbatim to any success handlers that have been added.
|
removeFaultHandler | () | Methode |
public function removeFaultHandler(handler:Function):void
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10 |
Laufzeitversionen: | AIR 1.1, Flash Player 9 |
Remove a fault handler.
Parameter
handler:Function — The handler to be removed.
|
removeSuccessHandler | () | Methode |
public function removeSuccessHandler(handler:Function):void
Sprachversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client-Komponenten-Framework 10 |
Laufzeitversionen: | AIR 1.1, Flash Player 9 |
Remove a success handler.
Parameter
handler:Function — The handler to remove.
|
Tue Jun 12 2018, 10:04 AM Z