Class ProductMetadata
Metadata for the product, namely that which is relevant to the store subsystem
Namespace: UnityEngine.Purchasing
Syntax
public class ProductMetadata
Constructors
ProductMetadata()
Default constructor
Declaration
public ProductMetadata()
ProductMetadata(String, String, String, String, Decimal)
Parametrized constructor
Declaration
public ProductMetadata(string priceString, string title, string description, string currencyCode, decimal localizedPrice)
Parameters
Type | Name | Description |
---|---|---|
String | priceString | The price, as a string. |
String | title | The title of the product. |
String | description | The description of the product. |
String | currencyCode | The currency code of the localized price. |
Decimal | localizedPrice | The localized price, by currency. |
Properties
isoCurrencyCode
The product's currency in ISO 4217 format eg GBP, USD etc.
Declaration
public string isoCurrencyCode { get; }
Property Value
Type | Description |
---|---|
String |
localizedDescription
Gets the localized description, as retrieved from the store subsystem; Apple, Google etc.
Declaration
public string localizedDescription { get; }
Property Value
Type | Description |
---|---|
String |
localizedPrice
The product's price, denominated in the currency
indicated by isoCurrencySymbol
.
Declaration
public decimal localizedPrice { get; }
Property Value
Type | Description |
---|---|
Decimal |
localizedPriceString
Gets the localized price. This is the price formatted with currency symbol.
Declaration
public string localizedPriceString { get; }
Property Value
Type | Description |
---|---|
String | The localized price string. |
localizedTitle
Gets the localized title, as retrieved from the store subsystem; Apple, Google etc.
Declaration
public string localizedTitle { get; }
Property Value
Type | Description |
---|---|
String |