Paket | com.adobe.gravity.utility.async |
Klass | public class Token |
Arv | Token Object |
Implementerar | IToken |
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | 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.
Metod | Definieras med | ||
---|---|---|---|
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 | ||
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 | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Remove a fault handler. | Token | ||
Remove a success handler. | Token | ||
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 |
Token | () | Konstruktor |
public function Token()
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Constructor.
addFaultHandler | () | metod |
public function addFaultHandler(handler:Function, weakReference:Boolean = false):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation fails.
Parametrar
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 | () | metod |
public function addSuccessHandler(handler:Function, weakReference:Boolean = false):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation succeeds.
Parametrar
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 | () | metod |
public function callFaultHandlers(error:Error):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Call all the fault handlers with the provided error object.
Parametrar
error:Error — The error object.
|
callFaultHandlersViaErrorEvent | () | metod |
public function callFaultHandlersViaErrorEvent(errorEvent:ErrorEvent):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | 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));
Parametrar
errorEvent:ErrorEvent — The error event.
|
callSuccessHandlers | () | metod |
public function callSuccessHandlers(... params):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Call all the success handlers with the provided parameters.
Parametrar
... params — Zero or more parameters to be passed verbatim to any success handlers that have been added.
|
removeFaultHandler | () | metod |
public function removeFaultHandler(handler:Function):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Remove a fault handler.
Parametrar
handler:Function — The handler to be removed.
|
removeSuccessHandler | () | metod |
public function removeSuccessHandler(handler:Function):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Remove a success handler.
Parametrar
handler:Function — The handler to remove.
|
Tue Jun 12 2018, 01:40 PM Z