docs.unity.cn
    Show / Hide Table of Contents

    Class UnityPurchasing

    The core abstract implementation for Unity Purchasing.

    Inheritance
    Object
    UnityPurchasing
    Namespace: UnityEngine.Purchasing
    Syntax
    public abstract class UnityPurchasing

    Methods

    ClearTransactionLog()

    This is useful in certain test scenarios, such as repeatedly testing an App's behaviour when purchases are restored.

    This is a static method since developers may wish to clear the log before initialising IAP.

    Declaration
    public static void ClearTransactionLog()

    Initialize(IStoreListener, ConfigurationBuilder)

    The main initialization call for Unity Purchasing.

    Declaration
    public static void Initialize(IStoreListener listener, ConfigurationBuilder builder)
    Parameters
    Type Name Description
    IStoreListener listener

    The IStoreListener to receive callbacks for future transactions

    ConfigurationBuilder builder

    The ConfigurationBuilder containing the product definitions mapped to stores

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 20 April 2021