Class IDs
Maps store specific Product identifiers to one or more store identifiers.
The name is deliberately terse for use as a collection initializer.
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. |