Class ConfigurationBuilder
Builds configuration for Unity Purchasing, consisting of products and store specific configuration details.
Inherited Members
Namespace: UnityEngine .Purchasing
Assembly: Unity.Purchasing.dll
Syntax
[Obsolete("Please upgrade to the new APIs available. For more info visit `Upgrading to IAP v5` in the IAP documentation. https://docs.unity3d.com/Packages/com.unity.purchasing@latest", false)]
public class ConfigurationBuilder
Methods
AddProduct(string, ProductType)
Add a product to the configuration builder.
Declaration
public void AddProduct(string id, ProductType type)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id of the product. |
Product |
type | The type of the product. |
AddProduct(string, ProductType, StoreSpecificIds)
Add a product to the configuration builder.
Declaration
public void AddProduct(string id, ProductType type, StoreSpecificIds storeIDs)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id of the product. |
Product |
type | The type of the product. |
Store |
storeIDs | The object representing store IDs the product is to be added to. |
AddProduct(string, ProductType, StoreSpecificIds, IEnumerable<PayoutDefinition>)
Add a product to the configuration builder.
Declaration
public void AddProduct(string id, ProductType type, StoreSpecificIds storeIDs, IEnumerable<PayoutDefinition> payouts)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id of the product. |
Product |
type | The type of the product. |
Store |
storeIDs | The object representing store IDs the product is to be added to. |
IEnumerable<Payout |
payouts | The enumerator of the payout definitions of the product. |
AddProduct(string, ProductType, StoreSpecificIds, PayoutDefinition)
Add a product to the configuration builder.
Declaration
public void AddProduct(string id, ProductType type, StoreSpecificIds storeIDs, PayoutDefinition payout)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id of the product. |
Product |
type | The type of the product. |
Store |
storeIDs | The object representing store IDs the product is to be added to. |
Payout |
payout | The payout definition of the product. |
Configure<T>()
Configure the store as specified by the template parameter.
Declaration
public T Configure<T>() where T : IStoreConfiguration
Returns
Type | Description |
---|---|
T | The store configuration as an object. |
Type Parameters
Name | Description |
---|---|
T | Implementation of |
Instance(object)
Create an instance of the configuration builder.
Declaration
public static ConfigurationBuilder Instance(object ignored)
Parameters
Type | Name | Description |
---|---|---|
object | ignored |
Returns
Type | Description |
---|---|
Configuration |
The instance of the configuration builder as specified. |