Language

CompactDecimalFormat.GetInstance Method

Definition

Overloads

Name Description
GetInstance(ULocale, CompactDecimalFormat+CompactStyle)

NOTE: New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

GetInstance(Locale, CompactDecimalFormat+CompactStyle)

NOTE: New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

GetInstance(ULocale, CompactDecimalFormat+CompactStyle)

NOTE: New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;Landroid/icu/text/CompactDecimalFormat$CompactStyle;)Landroid/icu/text/CompactDecimalFormat;", "", ApiSince=24)]
public static Android.Icu.Text.CompactDecimalFormat? GetInstance(Android.Icu.Util.ULocale? locale, Android.Icu.Text.CompactDecimalFormat.CompactStyle? style);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;Landroid/icu/text/CompactDecimalFormat$CompactStyle;)Landroid/icu/text/CompactDecimalFormat;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale * Android.Icu.Text.CompactDecimalFormat.CompactStyle -> Android.Icu.Text.CompactDecimalFormat

Parameters

locale
ULocale

the desired locale

style
CompactDecimalFormat.CompactStyle

the compact style

Returns

Attributes

Remarks

NOTE: New users are strongly encouraged to use NumberFormatter instead of NumberFormat. Creates a CompactDecimalFormat appropriate for a locale. The result may be affected by the number system in the locale, such as ar-u-nu-latn.

Android reference for android.icu.text.CompactDecimalFormat.getInstance.

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

GetInstance(Locale, CompactDecimalFormat+CompactStyle)

NOTE: New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;Landroid/icu/text/CompactDecimalFormat$CompactStyle;)Landroid/icu/text/CompactDecimalFormat;", "", ApiSince=24)]
public static Android.Icu.Text.CompactDecimalFormat? GetInstance(Java.Util.Locale? locale, Android.Icu.Text.CompactDecimalFormat.CompactStyle? style);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;Landroid/icu/text/CompactDecimalFormat$CompactStyle;)Landroid/icu/text/CompactDecimalFormat;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale * Android.Icu.Text.CompactDecimalFormat.CompactStyle -> Android.Icu.Text.CompactDecimalFormat

Parameters

locale
Locale

the desired locale

style
CompactDecimalFormat.CompactStyle

the compact style

Returns

Attributes

Remarks

NOTE: New users are strongly encouraged to use NumberFormatter instead of NumberFormat. Creates a CompactDecimalFormat appropriate for a locale. The result may be affected by the number system in the locale, such as ar-u-nu-latn.

Android reference for android.icu.text.CompactDecimalFormat.getInstance.

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