docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AbstractPurchasingModule

    Base class for Purchasing Modules.

    In addition to providing helper methods, use of an abstract class allows addition of IPurchasingModule methods without breaking compatibility with existing plugins.

    Inheritance
    object
    AbstractPurchasingModule
    Implements
    IPurchasingModule
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing.Extension
    Assembly: UnityEngine.Purchasing.dll
    Syntax
    public abstract class AbstractPurchasingModule : IPurchasingModule

    Fields

    m_Binder

    Object that binds this module with store implementations.

    Declaration
    protected IPurchasingBinder m_Binder
    Field Value
    Type Description
    IPurchasingBinder

    Methods

    BindConfiguration<T>(T)

    Binds the store configuration with the purchasing binder.

    Declaration
    protected void BindConfiguration<T>(T instance) where T : IStoreConfiguration
    Parameters
    Type Name Description
    T instance

    Instance of the store configuration

    Type Parameters
    Name Description
    T

    Implementation of IStoreConfiguration.

    BindExtension<T>(T)

    Binds the store extension with the purchasing binder.

    Declaration
    protected void BindExtension<T>(T instance) where T : IStoreExtension
    Parameters
    Type Name Description
    T instance

    Instance of the store extension

    Type Parameters
    Name Description
    T

    Implementation of IStoreExtension.

    Configure()

    Configures the purchasing module with default settings.

    Declaration
    public abstract void Configure()

    Configure(IPurchasingBinder)

    Configures the purchasing module.

    Declaration
    public void Configure(IPurchasingBinder binder)
    Parameters
    Type Name Description
    IPurchasingBinder binder

    The object binding the purchasing with store implementations

    RegisterStore(string, IStore)

    Registers a store with the purchasing binder.

    Declaration
    protected void RegisterStore(string name, IStore store)
    Parameters
    Type Name Description
    string name

    The store name

    IStore store

    The store's instance

    Implements

    IPurchasingModule
    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)