docs.unity3d.com
    Show / Hide Table of Contents

    Class StandardPurchasingModule

    Module for the standard stores covered by Unity; Apple App store, Google Play and more.

    Inheritance
    Object
    AbstractPurchasingModule
    StandardPurchasingModule
    Inherited Members
    AbstractPurchasingModule.m_Binder
    AbstractPurchasingModule.Configure(IPurchasingBinder)
    AbstractPurchasingModule.RegisterStore(String, IStore)
    AbstractPurchasingModule.BindExtension<T>(T)
    AbstractPurchasingModule.BindConfiguration<T>(T)
    Namespace: UnityEngine.Purchasing
    Syntax
    public class StandardPurchasingModule : AbstractPurchasingModule, IPurchasingModule, IAndroidStoreSelection, IStoreConfiguration

    Fields

    k_PackageVersion

    The version of com.unity.purchasing installed and the app was built using.

    Declaration
    public const string k_PackageVersion = "3.0.1"
    Field Value
    Type Description
    String

    Properties

    androidStore

    A property that retrieves the AndroidStore type, if applicabble.

    Declaration
    [Obsolete("Use StandardPurchasingModule.appStore instead")]
    public AndroidStore androidStore { get; }
    Property Value
    Type Description
    AndroidStore
    Implements
    IAndroidStoreSelection.androidStore

    appStore

    A property that retrieves the AppStore type.

    Declaration
    public AppStore appStore { get; }
    Property Value
    Type Description
    AppStore
    Implements
    IAndroidStoreSelection.appStore

    useFakeStoreAlways

    Whether or not to use the Fake store.

    Declaration
    public bool useFakeStoreAlways { get; set; }
    Property Value
    Type Description
    Boolean

    useFakeStoreUIMode

    The UI mode for the Fake store, if it's in use.

    Declaration
    public FakeStoreUIMode useFakeStoreUIMode { get; set; }
    Property Value
    Type Description
    FakeStoreUIMode

    useMockBillingSystem

    Whether or not to use the mock billing system for Universal Windows Platform apps.

    Declaration
    [Obsolete("Use IMicrosoftConfiguration to toggle use of the Microsoft IAP simulator.")]
    public bool useMockBillingSystem { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    Configure()

    Configures the StandardPurchasingModule.

    Declaration
    public override void Configure()
    Overrides
    AbstractPurchasingModule.Configure()

    Instance()

    Creates an instance of StandardPurchasingModule or retrieves the existing one.

    Declaration
    public static StandardPurchasingModule Instance()
    Returns
    Type Description
    StandardPurchasingModule

    The existing instance or the one just created.

    Instance(AndroidStore)

    Creates an instance of StandardPurchasingModule or retrieves the existing one, specifying a type of Android store.

    Declaration
    [Obsolete("Use StandardPurchasingModule.Instance(AppStore) instead")]
    public static StandardPurchasingModule Instance(AndroidStore androidStore)
    Parameters
    Type Name Description
    AndroidStore androidStore

    The type of Android Store with which to create the instance.

    Returns
    Type Description
    StandardPurchasingModule

    The existing instance or the one just created.

    Instance(AppStore)

    Creates an instance of StandardPurchasingModule or retrieves the existing one, specifying a type of App store.

    Declaration
    public static StandardPurchasingModule Instance(AppStore androidStore)
    Parameters
    Type Name Description
    AppStore androidStore

    The type of Android Store with which to create the instance.

    Returns
    Type Description
    StandardPurchasingModule

    The existing instance or the one just created.

    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