Package | net.flashplusplus.Snapdragon.InAppStore |
Class | public class SDStoreManager |
Inheritance | SDStoreManager flash.events.EventDispatcher |
Method | Defined 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 | ||
restoreTransactions():void
Restores the already purchased non concumable items. | SDStoreManager | ||
validateProductIdentifiers(identifiers:Vector.<String>, appIdentifier:String):void
Validates product identifiers. | SDStoreManager |
SDStoreManager | () | Constructor |
public function SDStoreManager(namespace:Namespace)
Constructor of SDStoreManager singleton class. It cannot be used directly, use getStoreManager property of Snapdragon instead.
Parametersnamespace:Namespace — is an internal namespace, so this method cannot be used.
|
error — when it is called.
|
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.
|
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.
|