docs.unity3d.com
    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
    StandardPurchasingModule
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Purchasing.Extension
    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

    Implements
    IPurchasingModule.Configure(IPurchasingBinder)

    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

    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