docs.unity3d.com
    Show / Hide Table of Contents

    Interface IWindowsIAP

    Interface for Universal Windows Platform purchasing calls.

    Namespace: UnityEngine.Purchasing.Default
    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(Boolean)

    Retrieve products from the Windows Store.

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

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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023