SkuDetails

public class SkuDetails 


Represents an in-app product's or subscription's listing details.

Summary

Public constructors

(削除) SkuDetails (削除ここまで)(String jsonSkuDetails)

Public methods

boolean
(削除) equals (削除ここまで)(Object o)
String
(削除) getDescription (削除ここまで)()

Returns the description of the product.

String
(削除) getFreeTrialPeriod (削除ここまで)()

Trial period configured in Google Play Console, specified in ISO 8601 format.

String
(削除) getIconUrl (削除ここまで)()

Returns the icon of the product if present.

String
(削除) getIntroductoryPrice (削除ここまで)()

Formatted introductory price of a subscription, including its currency sign, such as 3ドル.99.

long
(削除) getIntroductoryPriceAmountMicros (削除ここまで)()

Introductory price in micro-units.

int
(削除) getIntroductoryPriceCycles (削除ここまで)()

The number of subscription billing periods for which the user will be given the introductory price, such as 3.

String
(削除) getIntroductoryPricePeriod (削除ここまで)()

The billing period of the introductory price, specified in ISO 8601 format.

String
(削除) getOriginalJson (削除ここまで)()

Returns a String in JSON format that contains SKU details.

String
(削除) getOriginalPrice (削除ここまで)()

Returns formatted original price of the item, including its currency sign.

long
(削除) getOriginalPriceAmountMicros (削除ここまで)()

Returns the original price in micro-units, where 1,000,000 micro-units equal one unit of the currency.

String
(削除) getPrice (削除ここまで)()

Returns formatted price of the item, including its currency sign.

long
(削除) getPriceAmountMicros (削除ここまで)()

Returns price in micro-units, where 1,000,000 micro-units equal one unit of the currency.

String
(削除) getPriceCurrencyCode (削除ここまで)()

Returns ISO 4217 currency code for price and original price.

String
(削除) getSku (削除ここまで)()

Returns the product Id.

String
(削除) getSubscriptionPeriod (削除ここまで)()

Subscription period, specified in ISO 8601 format.

String
(削除) getTitle (削除ここまで)()

Returns the title of the product being sold.

String
(削除) getType (削除ここまで)()

Returns the SkuType of the SKU.

int
(削除) hashCode (削除ここまで)()
String
(削除) toString (削除ここまで)()

Public constructors

SkuDetails

public (削除) SkuDetails (削除ここまで)(String jsonSkuDetails)

Public methods

equals

public boolean (削除) equals (削除ここまで)(Object o)
See also
equals

getDescription

public String (削除) getDescription (削除ここまで)()

Returns the description of the product.

getFreeTrialPeriod

public String (削除) getFreeTrialPeriod (削除ここまで)()

Trial period configured in Google Play Console, specified in ISO 8601 format. For example, P7D equates to seven days. To learn more about free trial eligibility, see In-app Subscriptions.

Note: Returned only for subscriptions which have a trial period configured.

getIconUrl

public String (削除) getIconUrl (削除ここまで)()

Returns the icon of the product if present.

getIntroductoryPrice

public String (削除) getIntroductoryPrice (削除ここまで)()

Formatted introductory price of a subscription, including its currency sign, such as 3ドル.99. For tax exclusive countries, the price doesn't include tax.

Note: Returned only for subscriptions which have an introductory period configured.

getIntroductoryPriceAmountMicros

public long (削除) getIntroductoryPriceAmountMicros (削除ここまで)()

Introductory price in micro-units. The currency is the same as price_currency_code.

Note: Returns 0 if the SKU is not a subscription or doesn't have an introductory period.

getIntroductoryPriceCycles

public int (削除) getIntroductoryPriceCycles (削除ここまで)()

The number of subscription billing periods for which the user will be given the introductory price, such as 3.

Note: Returns 0 if the SKU is not a subscription or doesn't have an introductory period.

getIntroductoryPricePeriod

public String (削除) getIntroductoryPricePeriod (削除ここまで)()

The billing period of the introductory price, specified in ISO 8601 format.

Note: Returned only for subscriptions which have an introductory period configured.

getOriginalJson

public String (削除) getOriginalJson (削除ここまで)()

Returns a String in JSON format that contains SKU details.

getOriginalPrice

public String (削除) getOriginalPrice (削除ここまで)()

Returns formatted original price of the item, including its currency sign.

The original price is the price of the item before any applicable sales have been applied. For tax exclusive countries, the price doesn't include tax.

getOriginalPriceAmountMicros

public long (削除) getOriginalPriceAmountMicros (削除ここまで)()

Returns the original price in micro-units, where 1,000,000 micro-units equal one unit of the currency.

The original price is the price of the item before any applicable sales have been applied.

For example, if original price is "7ドル.99", original_price_amount_micros is "7990000". This value represents the localized, rounded price for a particular currency.

getPrice

public String (削除) getPrice (削除ここまで)()

Returns formatted price of the item, including its currency sign.

For tax exclusive countries, the price doesn't include tax.

getPriceAmountMicros

public long (削除) getPriceAmountMicros (削除ここまで)()

Returns price in micro-units, where 1,000,000 micro-units equal one unit of the currency.

For example, if price is "7ドル.99", price_amount_micros is "7990000". This value represents the localized, rounded price for a particular currency.

getPriceCurrencyCode

public String (削除) getPriceCurrencyCode (削除ここまで)()

Returns ISO 4217 currency code for price and original price.

For example, if price is specified in British pounds sterling, price_currency_code is "GBP".

getSku

public String (削除) getSku (削除ここまで)()

Returns the product Id.

getSubscriptionPeriod

public String (削除) getSubscriptionPeriod (削除ここまで)()

Subscription period, specified in ISO 8601 format. For example, P1W equates to one week, P1M equates to one month, P3M equates to three months, P6M equates to six months, and P1Y equates to one year.

Note: Returned only for subscriptions.

getTitle

public String (削除) getTitle (削除ここまで)()

Returns the title of the product being sold.

The title includes the name of the app which owns the product. Example: 100 Gold Coins (Coin selling app).

getType

public String (削除) getType (削除ここまで)()

Returns the SkuType of the SKU.

hashCode

public int (削除) hashCode (削除ここまで)()
See also
hashCode

toString

public String (削除) toString (削除ここまで)()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年06月30日 UTC.