Packagecom.adobe.ane.productStore
Classpublic class TransactionEvent
InheritanceTransactionEvent Inheritance flash.events.Event

The ProductStore class dispatches a TransactionEvent object when transaction details are obtained from the App Store.



Public Properties
 PropertyDefined By
  error : String
[read-only] Error code.
TransactionEvent
  transactions : Vector.<Transaction>
[read-only] Transactions details.
TransactionEvent
Public Methods
 MethodDefined By
  
TransactionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, transactions:Vector.<Transaction> = null, error:String = null)
Creates an TransactionEvent object that contains information about the transactions
TransactionEvent
  
clone():Event
[override] Creates a copy of the TransactionEvent object and sets the value of each property to match that of the original.
TransactionEvent
  
toString():String
[override] Returns a string that contains all the properties of the TransactionEvent object.
TransactionEvent
Public Constants
 ConstantDefined By
  FINISH_TRANSACTION_SUCCESS : String = finishTransactionSuccess
[static]
TransactionEvent
  PURCHASE_TRANSACTION_CANCEL : String = purchaseTransactionCancel
[static]
TransactionEvent
  PURCHASE_TRANSACTION_FAIL : String = purchaseTransactionFail
[static]
TransactionEvent
  PURCHASE_TRANSACTION_SUCCESS : String = purchaseTransactionSuccess
[static] Defines the value of the type property of a TransactionEvent object.
TransactionEvent
  RESTORE_TRANSACTION_COMPLETE : String = restoreTransactionComplete
[static]
TransactionEvent
  RESTORE_TRANSACTION_FAIL : String = restoreTransactionFail
[static]
TransactionEvent
  RESTORE_TRANSACTION_SUCCESS : String = restoreTransactionSuccess
[static]
TransactionEvent
Property Detail
errorproperty
error:String  [read-only]

Error code.


Implementation
    public function get error():String
transactionsproperty 
transactions:Vector.<Transaction>  [read-only]

Transactions details.


Implementation
    public function get transactions():Vector.<Transaction>
Constructor Detail
TransactionEvent()Constructor
public function TransactionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, transactions:Vector.<Transaction> = null, error:String = null)

Creates an TransactionEvent object that contains information about the transactions

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property.
 
bubbles:Boolean (default = false) — Indicates whether the Event object bubbles. Event listeners can access this information through the inherited bubbles property.
 
cancelable:Boolean (default = false) — Indicates whether the Event object can be canceled. Event listeners can access this information through the inherited cancelable property.
 
transactions:Vector.<Transaction> (default = null) — Transactions details.
 
error:String (default = null) — Error code.
Method Detail
clone()method
override public function clone():Event

Creates a copy of the TransactionEvent object and sets the value of each property to match that of the original.

Returns
Event
toString()method 
override public function toString():String

Returns a string that contains all the properties of the TransactionEvent object. The string has the following format:

[TransactionEvent type=value bubbles=value cancelable=value transactions=value error=value]

Returns
String — A string that contains all the properties of the TransactionEvent object.
Constant Detail
FINISH_TRANSACTION_SUCCESSConstant
public static const FINISH_TRANSACTION_SUCCESS:String = finishTransactionSuccess

PURCHASE_TRANSACTION_CANCELConstant 
public static const PURCHASE_TRANSACTION_CANCEL:String = purchaseTransactionCancel

PURCHASE_TRANSACTION_FAILConstant 
public static const PURCHASE_TRANSACTION_FAIL:String = purchaseTransactionFail

PURCHASE_TRANSACTION_SUCCESSConstant 
public static const PURCHASE_TRANSACTION_SUCCESS:String = purchaseTransactionSuccess

Defines the value of the type property of a TransactionEvent object.

RESTORE_TRANSACTION_COMPLETEConstant 
public static const RESTORE_TRANSACTION_COMPLETE:String = restoreTransactionComplete

RESTORE_TRANSACTION_FAILConstant 
public static const RESTORE_TRANSACTION_FAIL:String = restoreTransactionFail

RESTORE_TRANSACTION_SUCCESSConstant 
public static const RESTORE_TRANSACTION_SUCCESS:String = restoreTransactionSuccess