docs.unity3d.com
    目次を表示する/隠す

    Class ProductMetadata

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

    Inheritance
    Object
    ProductMetadata
    AppleProductMetadata
    GoogleProductMetadata
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    ProductMetadata(ProductMetadata)

    Copy constructor

    Declaration
    public ProductMetadata(ProductMetadata productMetadata)
    Parameters
    Type Name Description
    ProductMetadata productMetadata

    The ProductMetadata, as an object.

    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)
    GetAppleProductMetadataExtension.GetAppleProductMetadata(ProductMetadata)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)