docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UdpIapBridge

    Inheritance
    object
    UdpIapBridge
    Implements
    IInitListener
    IPurchaseListener
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: UnityEngine.UDP
    Assembly: UDP.dll
    Syntax
    public class UdpIapBridge : IInitListener, IPurchaseListener

    Constructors

    UdpIapBridge()

    Declaration
    public UdpIapBridge()

    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
    Type Name Description
    Action<bool, string> callback

    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
    Type Name Description
    UserInfo userInfo

    OnPurchase(PurchaseInfo)

    Called to notify that the purchase has succeeded.

    Declaration
    public void OnPurchase(PurchaseInfo purchaseInfo)
    Parameters
    Type Name Description
    PurchaseInfo purchaseInfo

    OnPurchaseConsume(PurchaseInfo)

    Called to notify that the consume has succeeded.

    Declaration
    public void OnPurchaseConsume(PurchaseInfo purchaseInfo)
    Parameters
    Type Name Description
    PurchaseInfo purchaseInfo

    OnPurchaseConsumeFailed(string, PurchaseInfo)

    Called to notify that the consume has failed.

    Declaration
    public void OnPurchaseConsumeFailed(string message, PurchaseInfo purchaseInfo)
    Parameters
    Type Name Description
    string message
    PurchaseInfo purchaseInfo

    OnPurchaseFailed(string, PurchaseInfo)

    Called to notify that the purchase has failed.

    Declaration
    public void OnPurchaseFailed(string message, PurchaseInfo purchaseInfo)
    Parameters
    Type Name Description
    string message
    PurchaseInfo purchaseInfo

    OnPurchasePending(string, PurchaseInfo)

    Called to notify that the purchase is pending.

    Declaration
    public void OnPurchasePending(string message, PurchaseInfo purchaseInfo)
    Parameters
    Type Name Description
    string message
    PurchaseInfo purchaseInfo

    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
    Type Name Description
    Inventory inventory

    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
    Type Name Description
    string productId
    Action<bool, string> callback
    string developerPayload

    RetrieveProducts(ReadOnlyCollection<string>, Action<bool, object>)

    Declaration
    public void RetrieveProducts(ReadOnlyCollection<string> productIds, Action<bool, object> callback)
    Parameters
    Type Name Description
    ReadOnlyCollection<string> productIds
    Action<bool, object> callback

    Implements

    IInitListener
    IPurchaseListener
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)