docs.unity3d.com
    Show / Hide Table of Contents

    Class ProductMetadata

    Metadata for the product, namely that which is relevant to the store subsystem

    Inheritance
    Object
    ProductMetadata
    GoogleProductMetadata
    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

    Extension Methods

    GetGoogleProductMetadataExtension.GetGoogleProductMetadata(ProductMetadata)
    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