formatPrice

open fun formatPrice(priceMicros: Long, currencyCode: String): String

Formats a micros price with the device's locale conventions.

Return

Formatted price, or empty string when the currency is unknown or the price is not positive.

Since

4.4.0

Parameters

priceMicros

Price × 1,000,000.

currencyCode

ISO-4217 currency code, e.g. "USD".