Class ProductDefinition
Product definition used by Apps declaring products for sale.
Inherited Members
Namespace: UnityEngine.Purchasing
Assembly: solution.dll
Syntax
public class ProductDefinition
Constructors
Name | Description |
---|---|
ProductDefinition(string, string, ProductType) | Parametrized constructor |
ProductDefinition(string, string, ProductType, bool) | Parametrized constructor |
ProductDefinition(string, string, ProductType, bool, IEnumerable<PayoutDefinition>) | Parametrized constructor |
ProductDefinition(string, string, ProductType, bool, PayoutDefinition) | Parametrized constructor |
ProductDefinition(string, ProductType) | Parametrized constructor, creating a ProductDefinition where the id is the same as the store specific ID. |
Properties
Name | Description |
---|---|
enabled | Whether or not the product is enabled for purchase. |
id | Store independent ID. |
payout | Gets the first attached payout. This is a shortcut for the case where only one payout is attached to the product. |
payouts | Gets all payouts attached to this product. |
storeSpecificId | The ID this product has on a specific store. |
type | The type of the product. |
Methods
Name | Description |
---|---|
Equals(object) | Check if this product definition is equal to another. |
GetHashCode() | Get the unique Hash representing the product definition. |