UnlocalizedNumberRangeFormatter.Locale Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Locale(ULocale) |
ULocale version of the |
Locale(Locale) |
Associate the given locale with the number range formatter. |
Locale(ULocale)
ULocale version of the #locale(Locale)
setter above.
[Android.Runtime.Register("locale", "(Landroid/icu/util/ULocale;)Landroid/icu/number/LocalizedNumberRangeFormatter;", "GetLocale_Landroid_icu_util_ULocale_Handler", ApiSince=30)]
public virtual Android.Icu.Number.LocalizedNumberRangeFormatter? Locale (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("locale", "(Landroid/icu/util/ULocale;)Landroid/icu/number/LocalizedNumberRangeFormatter;", "GetLocale_Landroid_icu_util_ULocale_Handler", ApiSince=30)>]
abstract member Locale : Android.Icu.Util.ULocale -> Android.Icu.Number.LocalizedNumberRangeFormatter
override this.Locale : Android.Icu.Util.ULocale -> Android.Icu.Number.LocalizedNumberRangeFormatter
Parameters
- locale
- ULocale
The locale to use when loading data for number range formatting.
Returns
The fluent chain
- Attributes
Remarks
ULocale version of the #locale(Locale)
setter above.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Locale(Locale)
Associate the given locale with the number range formatter.
[Android.Runtime.Register("locale", "(Ljava/util/Locale;)Landroid/icu/number/LocalizedNumberRangeFormatter;", "GetLocale_Ljava_util_Locale_Handler", ApiSince=30)]
public virtual Android.Icu.Number.LocalizedNumberRangeFormatter? Locale (Java.Util.Locale? locale);
[<Android.Runtime.Register("locale", "(Ljava/util/Locale;)Landroid/icu/number/LocalizedNumberRangeFormatter;", "GetLocale_Ljava_util_Locale_Handler", ApiSince=30)>]
abstract member Locale : Java.Util.Locale -> Android.Icu.Number.LocalizedNumberRangeFormatter
override this.Locale : Java.Util.Locale -> Android.Icu.Number.LocalizedNumberRangeFormatter
Parameters
- locale
- Locale
The locale to use when loading data for number range formatting.
Returns
The fluent chain
- Attributes
Remarks
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())
Java documentation for android.icu.number.UnlocalizedNumberRangeFormatter.locale(java.util.Locale)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.