docs.unity3d.com
    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
    Namespace: UnityEngine.Purchasing
    Syntax
    public class IDs : IEnumerable<KeyValuePair<string, string>>, IEnumerable

    Methods

    Add(String, 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, 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.

    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