Interface IPurchasingBinder
Configures Unity Purchasing with one or more store implementations.
Namespace: UnityEngine .Purchasing.Extension
Assembly: solution.dll
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 |
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 |
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
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 |
---|---|---|
ICatalog |
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<Hash |
func | The action that executes the addition of modificiation of products |