Added in API level 30

UnlocalizedNumberRangeFormatter


open class UnlocalizedNumberRangeFormatter : NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter!>
kotlin.Any
   ↳ android.icu.number.NumberRangeFormatterSettings<android.icu.number.UnlocalizedNumberRangeFormatter>
   ↳ android.icu.number.UnlocalizedNumberRangeFormatter

A NumberRangeFormatter that does not yet have a locale. In order to format, a locale must be specified. Instances of this class are immutable and thread-safe.

Summary

Public methods
open LocalizedNumberRangeFormatter!
locale(locale: Locale!)

Associate the given locale with the number range formatter.

open LocalizedNumberRangeFormatter!
locale(locale: ULocale!)

ULocale version of the locale(java.util.Locale) setter above.

Inherited functions

Public methods

locale

Added in API level 30
open fun locale(locale: Locale!): LocalizedNumberRangeFormatter!

Associate the given locale with the number range formatter. The locale is used for picking the appropriate symbols, formats, and other data for number display.

To use the Java default locale, call Locale.getDefault():

NumberFormatter.with(). ... .locale(Locale.getDefault())
  
Parameters
locale Locale!: The locale to use when loading data for number range formatting.
Return
LocalizedNumberRangeFormatter! The fluent chain

locale

Added in API level 30
open fun locale(locale: ULocale!): LocalizedNumberRangeFormatter!

ULocale version of the locale(java.util.Locale) setter above.

Parameters
locale ULocale!: The locale to use when loading data for number range formatting.
Return
LocalizedNumberRangeFormatter! The fluent chain

See Also