Pacchetto | com.adobe.gravity.utility.async |
Classe | public class Token |
Ereditarietà | Token Object |
Implementa | IToken |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Versioni runtime: | 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.
Metodo | Definito da | ||
---|---|---|---|
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 | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Remove a fault handler. | Token | ||
Remove a success handler. | Token | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | ||
Restituisce il valore di base dell'oggetto specificato. | Object |
Token | () | Funzione di costruzione |
public function Token()
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Versioni runtime: | AIR 1.1, Flash Player 9 |
Constructor.
addFaultHandler | () | metodo |
public function addFaultHandler(handler:Function, weakReference:Boolean = false):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Versioni runtime: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation fails.
Parametri
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 | () | metodo |
public function addSuccessHandler(handler:Function, weakReference:Boolean = false):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Versioni runtime: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation succeeds.
Parametri
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 | () | metodo |
public function callFaultHandlers(error:Error):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Versioni runtime: | AIR 1.1, Flash Player 9 |
Call all the fault handlers with the provided error object.
Parametri
error:Error — The error object.
|
callFaultHandlersViaErrorEvent | () | metodo |
public function callFaultHandlersViaErrorEvent(errorEvent:ErrorEvent):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Versioni runtime: | 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));
Parametri
errorEvent:ErrorEvent — The error event.
|
callSuccessHandlers | () | metodo |
public function callSuccessHandlers(... params):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Versioni runtime: | AIR 1.1, Flash Player 9 |
Call all the success handlers with the provided parameters.
Parametri
... params — Zero or more parameters to be passed verbatim to any success handlers that have been added.
|
removeFaultHandler | () | metodo |
public function removeFaultHandler(handler:Function):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Versioni runtime: | AIR 1.1, Flash Player 9 |
Remove a fault handler.
Parametri
handler:Function — The handler to be removed.
|
removeSuccessHandler | () | metodo |
public function removeSuccessHandler(handler:Function):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Versioni runtime: | AIR 1.1, Flash Player 9 |
Remove a success handler.
Parametri
handler:Function — The handler to remove.
|
Tue Jun 12 2018, 02:44 PM Z