docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IDs

    Maps store specific Product identifiers to one or more store identifiers.

    The name is deliberately terse for use as a collection initializer.

    Inheritance
    object
    IDs
    Implements
    IEnumerable<KeyValuePair<string, string>>
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    [Obsolete("This API is deprecated. Please upgrade to the new APIs introduced in IAP v5. For more information, visit the IAP manual: https://docs.unity.com/ugs/en-us/manual/iap/manual/upgrade-to-iap-v5", false)]
    public class IDs : IEnumerable<KeyValuePair<string, string>>, IEnumerable

    Methods

    Add(string, params object[])

    Add a product identifier to a list of store names with non strings such as Enums.

    Declaration
    public void Add(string id, params object[] stores)
    Parameters
    Type Name Description
    string id

    Product identifier.

    object[] stores

    List of stores by other object, to which we the id will be mapped to.

    Add(string, params string[])

    Add a product identifier to a list of store names with string.

    Declaration
    public void Add(string id, params string[] stores)
    Parameters
    Type Name Description
    string id

    Product identifier.

    string[] stores

    List of stores by string, to which we the id will be mapped to.

    GetEnumerator()

    Retrieve an Enumerator with which can be used to iterate through the internal map structure.

    Declaration
    public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
    Returns
    Type Description
    IEnumerator<KeyValuePair<string, string>>

    Enumerator as a Key/Value pair.

    Implements

    IEnumerable<T>
    IEnumerable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)