Class ProductCatalog
The product catalog represents a list of IAP products, with enough information about each product to do a batch export for Apple's Application Loader or the Google Play CSV import format. To retreive the standard catalog, use ProductCatalog.LoadDefaultCatalog().
Inherited Members
Namespace: UnityEngine .Purchasing
Assembly: solution.dll
Syntax
[Serializable]
public class ProductCatalog
Fields
Name | Description |
---|---|
apple |
The apple SKU of the app. |
apple |
The apple team ID of the app. |
enable |
Enables automatic initialization when using Codeless IAP. |
enable |
Enables automatic Unity Gaming Services initialization when using Codeless IAP. |
k |
The path of the catalog file. |
k |
The previous path of the catalog file used in older versions of Unity IAP. |
Properties
Name | Description |
---|---|
all |
The collection of all products. |
all |
The collection of all valid products. |
Methods
Name | Description |
---|---|
Add(Product |
Adds an item to the catalog. |
Deserialize(string) | Deserializes the catalog from JSON. |
From |
Deserializes the catalog from a text asset. |
Initialize(IProduct |
Override the default catalog implementation. |
Is |
Check if the catalog is empty. A catalog is considered empty when it contains no products with valid IDs. |
Load |
Loads the default catalog. |
Remove(Product |
Removes an item to the catalog. |
Serialize(Product |
Serializes the catalog to JSON. |