docs.unity3d.com
    Show / Hide Table of Contents

    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

    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