Packagecom.adobe.ane.productStore
Classpublic class ProductEvent
InheritanceProductEvent Inheritance flash.events.Event

The ProductStore class dispatches a ProductEvent object when products details are obtained from the App Store. Product instances are passed in the ProductEvent, event.



Public Properties
 PropertyDefined By
  error : String
[read-only] Error code.
ProductEvent
  invalidIdentifiers : Vector.<String>
[read-only] Invalid product identifiers.
ProductEvent
  products : Vector.<Product>
[read-only] Product Details.
ProductEvent
Public Methods
 MethodDefined By
  
ProductEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, products:Vector.<Product> = null, invalidIdentifiers:Vector.<String> = null, error:String = null)
Creates an ProductEvent object that contains information about the products
ProductEvent
  
clone():Event
[override] Creates a copy of a ProductEvent object and sets the value of each property to match that of the original.
ProductEvent
  
toString():String
[override] Returns a string that contains all the properties of the ProductEvent object.
ProductEvent
Public Constants
 ConstantDefined By
  PRODUCT_DETAILS_FAIL : String = productDetailsFail
[static]
ProductEvent
  PRODUCT_DETAILS_SUCCESS : String = productDetailsSuccess
[static] Defines the value of the type property of a ProductEvent object.
ProductEvent
Property Detail
errorproperty
error:String  [read-only]

Error code.


Implementation
    public function get error():String
invalidIdentifiersproperty 
invalidIdentifiers:Vector.<String>  [read-only]

Invalid product identifiers.


Implementation
    public function get invalidIdentifiers():Vector.<String>
productsproperty 
products:Vector.<Product>  [read-only]

Product Details.


Implementation
    public function get products():Vector.<Product>
Constructor Detail
ProductEvent()Constructor
public function ProductEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, products:Vector.<Product> = null, invalidIdentifiers:Vector.<String> = null, error:String = null)

Creates an ProductEvent object that contains information about the products

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.
 
products:Vector.<Product> (default = null) — Product Details.
 
invalidIdentifiers:Vector.<String> (default = null) — Invalid product identifiers.
 
error:String (default = null) — Error code.
Method Detail
clone()method
override public function clone():Event

Creates a copy of a ProductEvent 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 ProductEvent object. The string has the following format:

[ProductEvent type=value bubbles=value cancelable=value products=value invalidIdentifiers=value error=value]

Returns
String — A string that contains all the properties of the ProductEvent object.
Constant Detail
PRODUCT_DETAILS_FAILConstant
public static const PRODUCT_DETAILS_FAIL:String = productDetailsFail

PRODUCT_DETAILS_SUCCESSConstant 
public static const PRODUCT_DETAILS_SUCCESS:String = productDetailsSuccess

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