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 |
---|---|
appleSKU | The apple SKU of the app. |
appleTeamID | The apple team ID of the app. |
enableCodelessAutoInitialization | Enables automatic initialization when using Codeless IAP. |
enableUnityGamingServicesAutoInitialization | Enables automatic Unity Gaming Services initialization when using Codeless IAP. |
kCatalogPath | The path of the catalog file. |
kPrevCatalogPath | The previous path of the catalog file used in older versions of Unity IAP. |
Properties
Name | Description |
---|---|
allProducts | The collection of all products. |
allValidProducts | The collection of all valid products. |
Methods
Name | Description |
---|---|
Add(ProductCatalogItem) | Adds an item to the catalog. |
Deserialize(string) | Deserializes the catalog from JSON. |
FromTextAsset(TextAsset) | Deserializes the catalog from a text asset. |
Initialize(IProductCatalogImpl) | Override the default catalog implementation. |
IsEmpty() | Check if the catalog is empty. A catalog is considered empty when it contains no products with valid IDs. |
LoadDefaultCatalog() | Loads the default catalog. |
Remove(ProductCatalogItem) | Removes an item to the catalog. |
Serialize(ProductCatalog) | Serializes the catalog to JSON. |