docs.unity3d.com
    Show / Hide Table of Contents

    Class ProductCollection

    Provides helper methods to retrieve products by store independent/store specific id.

    Inheritance
    Object
    ProductCollection
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Purchasing
    Syntax
    public class ProductCollection

    Properties

    all

    The array of all products

    Declaration
    public Product[] all { get; }
    Property Value
    Type Description
    Product[]

    set

    The hash set of all products

    Declaration
    public HashSet<Product> set { get; }
    Property Value
    Type Description
    HashSet<Product>

    Methods

    WithID(String)

    Gets a product matching an id

    Declaration
    public Product WithID(string id)
    Parameters
    Type Name Description
    String id

    The id of the desired product

    Returns
    Type Description
    Product

    The product matching the id, or null if not found

    WithStoreSpecificID(String)

    Gets a product matching a store-specific id

    Declaration
    public Product WithStoreSpecificID(string id)
    Parameters
    Type Name Description
    String id

    The store-specific id of the desired product

    Returns
    Type Description
    Product

    The product matching the id, or null if not found

    Back to top
    Terms of use
    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