docs.unity3d.com
    目次を表示する/隠す

    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

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)