Class IAPListener
An invisible GUI component for initializing Unity IAP and processing lifecycle events.
Inherited Members
Namespace: UnityEngine .Purchasing
Assembly: solution.dll
Syntax
[AddComponentMenu("In-App Purchasing/IAP Listener")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.purchasing@latest")]
public class IAPListener : MonoBehaviour
Fields
Name | Description |
---|---|
consume |
Consume successful purchases immediately. |
dont |
Preserve this GameObject when a new scene is loaded. |
on |
Event fired after a successful fetching the products from the store. |
on |
Event fired after a successful purchase of this product. |
on |
Event fired after a failed purchase of this product. |
on |
Event fired after a failed purchase of this product. |
Methods
Name | Description |
---|---|
On |
Invoked on a failed purchase a product |
On |
Invoked on a failed purchase of the product associated with this button |
Process |
Invoked to process a successful purchase of the product associated with this button |