Share via


LocaleDisplayNames.GetInstance Method

Definition

Overloads

GetInstance(ULocale)

Convenience overload of #getInstance(ULocale, DialectHandling) that specifies STANDARD dialect handling.

GetInstance(Locale)

Convenience overload of #getInstance(Locale, DisplayContext...) that specifies DisplayContext#STANDARD_NAMES.

GetInstance(ULocale, DisplayContext[])
GetInstance(ULocale, LocaleDisplayNames+DialectHandling)
GetInstance(Locale, DisplayContext[])

GetInstance(ULocale)

Convenience overload of #getInstance(ULocale, DialectHandling) that specifies STANDARD dialect handling.

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

Parameters

locale
ULocale

the display locale

Returns

a LocaleDisplayNames instance

Attributes

Remarks

Convenience overload of #getInstance(ULocale, DialectHandling) that specifies STANDARD dialect handling.

Java documentation for android.icu.text.LocaleDisplayNames.getInstance(android.icu.util.ULocale).

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)

Convenience overload of #getInstance(Locale, DisplayContext...) that specifies DisplayContext#STANDARD_NAMES.

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

Parameters

locale
Locale

the display java.util.Locale

Returns

a LocaleDisplayNames instance

Attributes

Remarks

Convenience overload of #getInstance(Locale, DisplayContext...) that specifies DisplayContext#STANDARD_NAMES.

Java documentation for android.icu.text.LocaleDisplayNames.getInstance(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.

Applies to

GetInstance(ULocale, DisplayContext[])

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

Parameters

locale
ULocale
contexts
DisplayContext[]

Returns

Attributes

Remarks

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(ULocale, LocaleDisplayNames+DialectHandling)

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

Parameters

locale
ULocale

Returns

Attributes

Remarks

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, DisplayContext[])

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

Parameters

locale
Locale
contexts
DisplayContext[]

Returns

Attributes

Remarks

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