ProductDetails.OneTimePurchaseOfferDetails
public
static
final
class
ProductDetails.OneTimePurchaseOfferDetails
extends Object
java.lang.Object | |
↳ | com.android.billingclient.api.ProductDetails.OneTimePurchaseOfferDetails |
Represents the offer details to buy an one-time purchase product.
Summary
Public methods | |
---|---|
String
|
getFormattedPrice()
Returns formatted price for the payment, including its currency sign. |
long
|
getPriceAmountMicros()
Returns the price for the payment in micro-units, where 1,000,000 micro-units equal one unit of the currency. |
String
|
getPriceCurrencyCode()
Returns ISO 4217 currency code for price. |
Inherited methods | |
---|---|
Public methods
getFormattedPrice
public String getFormattedPrice ()
Returns formatted price for the payment, including its currency sign.
For tax exclusive countries, the price doesn't include tax.
Returns | |
---|---|
String |
getPriceAmountMicros
public long getPriceAmountMicros ()
Returns the price for the payment 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.
Returns | |
---|---|
long |