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)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Purchasing
    Syntax
    public class StandardPurchasingModule : AbstractPurchasingModule, IPurchasingModule, IAndroidStoreSelection, IStoreConfiguration

    Fields

    k_PackageVersion

    Obsolete and inaccurate. Do not use.

    Declaration
    [Obsolete("Not accurate. Use Version instead.", false)]
    public const string k_PackageVersion = "3.0.1"
    Field Value
    Type Description
    String

    Properties

    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

    Version

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

    Declaration
    public string Version { get; }
    Property Value
    Type Description
    String

    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(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
    Terms of use
    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