docs.unity.cn
    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
    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 Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 20 April 2021