Class UdpIapBridge
Assembly: UDP.dll
Syntax
public class UdpIapBridge : IInitListener, IPurchaseListener
Constructors
UdpIapBridge()
Declaration
Methods
FinishTransaction(string)
Declaration
public void FinishTransaction(string transactionId)
Parameters
Type |
Name |
Description |
string |
transactionId |
|
Initialize(Action<bool, string>)
Declaration
public void Initialize(Action<bool, string> callback)
Parameters
OnInitializeFailed(string)
Init failed callback to your game if the initalization was failed.
Declaration
public void OnInitializeFailed(string message)
Parameters
Type |
Name |
Description |
string |
message |
|
OnInitialized(UserInfo)
Init success callback to your game if the initialization was successful.
Declaration
public void OnInitialized(UserInfo userInfo)
Parameters
OnPurchase(PurchaseInfo)
Called to notify that the purchase has succeeded.
Declaration
public void OnPurchase(PurchaseInfo purchaseInfo)
Parameters
OnPurchaseConsume(PurchaseInfo)
Called to notify that the consume has succeeded.
Declaration
public void OnPurchaseConsume(PurchaseInfo purchaseInfo)
Parameters
OnPurchaseConsumeFailed(string, PurchaseInfo)
Called to notify that the consume has failed.
Declaration
public void OnPurchaseConsumeFailed(string message, PurchaseInfo purchaseInfo)
Parameters
OnPurchaseFailed(string, PurchaseInfo)
Called to notify that the purchase has failed.
Declaration
public void OnPurchaseFailed(string message, PurchaseInfo purchaseInfo)
Parameters
OnPurchasePending(string, PurchaseInfo)
Called to notify that the purchase is pending.
Declaration
public void OnPurchasePending(string message, PurchaseInfo purchaseInfo)
Parameters
OnPurchaseRepeated(string)
Called to notify that a player has purchased a non-consumable product several times.
You can implement this listener when the partner store doesn’t support QueryInventory.
Declaration
public void OnPurchaseRepeated(string productId)
Parameters
Type |
Name |
Description |
string |
productId |
|
OnQueryInventory(Inventory)
Called to notify that the query has succeeded.
Declaration
public void OnQueryInventory(Inventory inventory)
Parameters
OnQueryInventoryFailed(string)
Called to notify that the query has failed.
Declaration
public void OnQueryInventoryFailed(string message)
Parameters
Type |
Name |
Description |
string |
message |
|
Purchase(string, Action<bool, string>, string)
Declaration
public void Purchase(string productId, Action<bool, string> callback, string developerPayload = null)
Parameters
RetrieveProducts(ReadOnlyCollection<string>, Action<bool, object>)
Declaration
public void RetrieveProducts(ReadOnlyCollection<string> productIds, Action<bool, object> callback)
Parameters
Implements