Class CloudCatalogImpl
Fetches IAP products from Unity cloud. Caches products on local disk when the server is unavailable.
Namespace: UnityEngine.Purchasing
Syntax
public class CloudCatalogImpl
Methods
CreateInstance(String)
Creates a new intance of a cloud catalog for a given store.
Declaration
public static CloudCatalogImpl CreateInstance(string storeName)
Parameters
Type | Name | Description |
---|---|---|
String | storeName | The name of the store for which to create the catalog, e.g. GooglePlay. |
Returns
Type | Description |
---|---|
CloudCatalogImpl | The new instance created. |
FetchProducts(Action<HashSet<ProductDefinition>>)
Fetches the products contained in the cloud catalog aynchronously.
Declaration
public void FetchProducts(Action<HashSet<ProductDefinition>> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<HashSet<ProductDefinition>> | callback | The action to be executed once the fetch is complete. |