docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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().

    Inheritance
    object
    ProductCatalog
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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.

    In This Article
    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