Class UnityPurchasingAdapter
Implements
Namespace: UnityEngine.GameFoundation.PurchasingAdapters
Assembly: solution.dll
Syntax
public class UnityPurchasingAdapter : IPurchasingAdapter
Properties
| Name | Description |
|---|---|
| isAppleIOS | Are we currently running on the Apple iOS platform? |
| isFakeStore | Are we currently running on a fake platform just for testing? |
| isGooglePlay | Are we currently running on the Google Play platform? |
Methods
| Name | Description |
|---|---|
| BeginPurchase(string, string) | Called when the player initiates a real money in-app purchase. |
| CompletePendingPurchase(string) | Called after a purchase has been verified and fulfilled by some other authority, such as an online backend. |
| GetCurrentPurchaseData() | Return a struct that contains just the data about a successful purchase which the TransactionManager can use to fulfill and/or finalize a purchase. |
| GetLocalizedProductInfo(string) | Use the purchasing platform to get localized product name, price, and other metadata. |
| Initialize(Action, Action<Exception>) | Called to set up anything the platform SDK needs in order to process real money purchase requests. |
| RestorePurchases() | Called when the player wants to restore purchases (for platforms that don't restore them automatically). |
| Uninitialize() | The TransactionManager will call this method when it is uninitialized, when Game Foundation is uninitialized. |