Packagenet.flashplusplus.Snapdragon.InAppStore
Classpublic class SDStoreManager
InheritanceSDStoreManager Inheritance flash.events.EventDispatcher



Public Methods
 MethodDefined By
  
SDStoreManager(namespace:Namespace)
Constructor of SDStoreManager singleton class.
SDStoreManager
  
getInstance(nameSpace:Namespace):SDStoreManager
[static] Function to get SDStoreManager instance.
SDStoreManager
  
purchaseConsumableProduct(identifier:String, count:uint):void
Purchase consumable product by identifier.
SDStoreManager
  
purchaseNonConsumableProduct(identifier:String):void
Purchase non consumable product by identifier.
SDStoreManager
  
Restores the already purchased non concumable items.
SDStoreManager
  
validateProductIdentifiers(identifiers:Vector.<String>, appIdentifier:String):void
Validates product identifiers.
SDStoreManager
Constructor Detail
SDStoreManager()Constructor
public function SDStoreManager(namespace:Namespace)

Constructor of SDStoreManager singleton class. It cannot be used directly, use getStoreManager property of Snapdragon instead.

Parameters
namespace:Namespace — is an internal namespace, so this method cannot be used.

Throws
error — when it is called.
Method Detail
getInstance()method
public static function getInstance(nameSpace:Namespace):SDStoreManager

Function to get SDStoreManager instance. It is not meant to be used.

Parameters

nameSpace:Namespace — is an internal namespace, so this method cannot be used.

Returns
SDStoreManager — the only instance of SDStoreManager object.
purchaseConsumableProduct()method 
public function purchaseConsumableProduct(identifier:String, count:uint):void

Purchase consumable product by identifier.

Parameters

identifier:String — is a string to identify the product.
 
count:uint — is the amount of purchased product.

purchaseNonConsumableProduct()method 
public function purchaseNonConsumableProduct(identifier:String):void

Purchase non consumable product by identifier.

Parameters

identifier:String — is a string to identify the product.

restoreTransactions()method 
public function restoreTransactions():void

Restores the already purchased non concumable items.

validateProductIdentifiers()method 
public function validateProductIdentifiers(identifiers:Vector.<String>, appIdentifier:String):void

Validates product identifiers.

Parameters

identifiers:Vector.<String> — is a vector contains strings to identify the products.
 
appIdentifier:String — is a unique identifier to store the data of purchases in secret. It can be set once and it must be a string constant in the code.