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

    Interface IPurchasingBinder

    Configures Unity Purchasing with one or more store implementations.

    Namespace: UnityEngine.Purchasing.Extension
    Syntax
    public interface IPurchasingBinder

    Methods

    RegisterConfiguration<T>(T)

    Informs Unity Purchasing that extended Configuration is available.

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

    The instance of the store configuration.

    Type Parameters
    Name Description
    T

    Implementation of IStoreConfiguration.

    RegisterExtension<T>(T)

    Informs Unity Purchasing that a store extension is available.

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

    The instance of the store extension.

    Type Parameters
    Name Description
    T

    Implementation of IStoreExtension.

    RegisterStore(String, IStore)

    Informs Unity Purchasing that a store implementation exists, specifying its name.

    Modules can pass null IStore instances when running on platforms they do not support.

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

    The name of the store

    IStore store

    The instance of the store

    SetCatalogProvider(ICatalogProvider)

    Informs Unity Purchasing about a catalog provider which might replace or add products at runtime.

    Declaration
    void SetCatalogProvider(ICatalogProvider provider)
    Parameters
    Type Name Description
    ICatalogProvider provider

    The provider of the catalog containing the products

    SetCatalogProviderFunction(Action<Action<HashSet<ProductDefinition>>>)

    Informs Unity Purchasing about a catalog provider function, which might replace or add products at runtime. This is an alternative to the SetCatalogProvider API for setting a catalog provider that does not implement the ICatalogProvider interface.

    Declaration
    void SetCatalogProviderFunction(Action<Action<HashSet<ProductDefinition>>> func)
    Parameters
    Type Name Description
    Action<Action<HashSet<ProductDefinition>>> func

    The action that executes the addition of modificiation of products

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