Tanks Multiplayer  1.5
Public Member Functions | Static Public Member Functions | Public Attributes | Events | List of all members
UnityIAPManager

Manager handling the full in-app purchase workflow, granting purchases and catching errors using Unity IAP. More...

Inheritance diagram for UnityIAPManager:

Public Member Functions

void OnInitialized (IStoreController ctrl, IExtensionProvider ext)
 Called when Unity IAP is ready to make purchases, delivering the store controller (contains all online products) and platform specific extension More...
 
void OnInitializeFailed (InitializationFailureReason error)
 Called when Unity IAP encounters an unrecoverable initialization error. More...
 
PurchaseProcessingResult ProcessPurchase (PurchaseEventArgs e)
 Called when a purchase completes after being bought. More...
 
void OnPurchaseFailed (Product p, PurchaseFailureReason r)
 Called when a purchase fails, providing the product and reason. More...
 

Static Public Member Functions

static void PurchaseProduct (string productId)
 Called when the user presses the 'Buy' button on an IAPProduct. More...
 
static void RestoreTransactions ()
 Method for restoring transactions which prompts users for their password (Apple only). More...
 

Public Attributes

string googlePlayLicenseKey
 Your Google Play app license key from the Google Play Developer Console. More...
 

Events

static Action< string > purchaseFailedEvent
 Fired on failed purchases to deliver its product identifier. More...
 

Detailed Description

Manager handling the full in-app purchase workflow, granting purchases and catching errors using Unity IAP.

Member Function Documentation

void OnInitialized ( IStoreController  ctrl,
IExtensionProvider  ext 
)

Called when Unity IAP is ready to make purchases, delivering the store controller (contains all online products) and platform specific extension

void OnInitializeFailed ( InitializationFailureReason  error)

Called when Unity IAP encounters an unrecoverable initialization error.

void OnPurchaseFailed ( Product  p,
PurchaseFailureReason  r 
)

Called when a purchase fails, providing the product and reason.

PurchaseProcessingResult ProcessPurchase ( PurchaseEventArgs  e)

Called when a purchase completes after being bought.

static void PurchaseProduct ( string  productId)
static

Called when the user presses the 'Buy' button on an IAPProduct.

static void RestoreTransactions ( )
static

Method for restoring transactions which prompts users for their password (Apple only).

Member Data Documentation

string googlePlayLicenseKey

Your Google Play app license key from the Google Play Developer Console.

Event Documentation

Action<string> purchaseFailedEvent
static

Fired on failed purchases to deliver its product identifier.


The documentation for this class was generated from the following file: