docs.unity3d.com
    Show / Hide Table of Contents

    Class CloudCatalogImpl

    Fetches IAP products from Unity cloud. Caches products on local disk when the server is unavailable.

    Inheritance
    Object
    CloudCatalogImpl
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023