ProductDetails.OneTimePurchaseOfferDetails

public static final class ProductDetails.OneTimePurchaseOfferDetails
extends Object

java.lang.Object
   ↳ com.android.billingclient.api.ProductDetails.OneTimePurchaseOfferDetails
Included in documentation by the annotations: @Annotations.OneTimeProductDetails ,   @Annotations.ProductDetails

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. Included in documentation by the annotations: @Annotations.OneTimeProductDetails

long getPriceAmountMicros()

Returns the price for the payment in micro-units, where 1,000,000 micro-units equal one unit of the currency. Included in documentation by the annotations: @Annotations.OneTimeProductDetails

String getPriceCurrencyCode()

Returns ISO 4217 currency code for price. Included in documentation by the annotations: @Annotations.OneTimeProductDetails

Inherited methods

Public methods

getFormattedPrice

public String getFormattedPrice ()
Included in documentation by the annotations: @Annotations.OneTimeProductDetails

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 ()
Included in documentation by the annotations: @Annotations.OneTimeProductDetails

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

getPriceCurrencyCode

public String getPriceCurrencyCode ()
Included in documentation by the annotations: @Annotations.OneTimeProductDetails

Returns ISO 4217 currency code for price.

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

Returns
String