Class UnityPurchasingAdapter
Implements
Namespace: UnityEngine .GameFoundation .PurchasingAdapters
Assembly: solution.dll
Syntax
public class UnityPurchasingAdapter : IPurchasingAdapter
Properties
Name | Description |
---|---|
is |
Are we currently running on the Apple iOS platform? |
is |
Are we currently running on a fake platform just for testing? |
is |
Are we currently running on the Google Play platform? |
Methods
Name | Description |
---|---|
Begin |
Called when the player initiates a real money in-app purchase. |
Complete |
Called after a purchase has been verified and fulfilled by some other authority, such as an online backend. |
Get |
Return a struct that contains just the data about a successful purchase which the TransactionManager can use to fulfill and/or finalize a purchase. |
Get |
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. |
Restore |
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. |