Class BaseIAPButton
A GUI component for exposing the current price and allow purchasing of In-App Purchases. Exposes configurable elements through the Inspector.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: UnityEngine.Purchasing
Syntax
public abstract class BaseIAPButton : MonoBehaviour
Methods
AddButtonToCodelessListener()
Declaration
protected abstract void AddButtonToCodelessListener()
GetPurchaseButton()
Declaration
protected abstract Button GetPurchaseButton()
Returns
Type | Description |
---|---|
Button |
IsARestoreButton()
Declaration
protected abstract bool IsARestoreButton()
Returns
Type | Description |
---|---|
Boolean |
OnPurchaseComplete(Product)
Declaration
protected abstract void OnPurchaseComplete(Product purchasedProduct)
Parameters
Type | Name | Description |
---|---|---|
Product | purchasedProduct |
OnTransactionsRestored(Boolean, String)
Declaration
protected abstract void OnTransactionsRestored(bool success, string error)
Parameters
Type | Name | Description |
---|---|---|
Boolean | success | |
String | error |
ProcessPurchaseInternal(PurchaseEventArgs)
Declaration
protected PurchaseProcessingResult ProcessPurchaseInternal(PurchaseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
PurchaseEventArgs | args |
Returns
Type | Description |
---|---|
PurchaseProcessingResult |
RemoveButtonToCodelessListener()
Declaration
protected abstract void RemoveButtonToCodelessListener()
ShouldConsumePurchase()
Declaration
protected abstract bool ShouldConsumePurchase()
Returns
Type | Description |
---|---|
Boolean |