docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IWindowsIAP

    Interface for Universal Windows Platform purchasing calls.

    Namespace: UnityEngine.Purchasing.Default
    Assembly: UnityEngine.Purchasing.WinRTCore.dll
    Syntax
    public interface IWindowsIAP

    Methods

    BuildDummyProducts(List<WinProductDescription>)

    Builds a set of local products to be used as a proxy for what's on the Windows Store.

    Declaration
    void BuildDummyProducts(List<WinProductDescription> products)
    Parameters
    Type Name Description
    List<WinProductDescription> products

    The products used.

    FinaliseTransaction(string)

    Finalizes a transaction.

    Declaration
    void FinaliseTransaction(string transactionId)
    Parameters
    Type Name Description
    string transactionId

    The ID of transaction to be finalzed.

    Initialize(IWindowsIAPCallback)

    Initializes the Windows Store.

    Declaration
    void Initialize(IWindowsIAPCallback callback)
    Parameters
    Type Name Description
    IWindowsIAPCallback callback

    The implementation of IWindowsIAPCallback used to handle events.

    Purchase(string)

    Purchases a product.

    Declaration
    void Purchase(string productId)
    Parameters
    Type Name Description
    string productId

    The ID product to be purchased.

    RetrieveProducts(bool)

    Retrieve products from the Windows Store.

    Declaration
    void RetrieveProducts(bool retryIfOffline)
    Parameters
    Type Name Description
    bool retryIfOffline

    Whether or not to retry the retrieval if it fails due to lack of an Internet connection.

    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)