LocaleDisplayNames.LocaleDisplayName Method

Definition

Overloads

LocaleDisplayName(ULocale)

Returns the display name of the provided ulocale.

LocaleDisplayName(Locale)

Returns the display name of the provided locale.

LocaleDisplayName(String)

Returns the display name of the provided locale id.

LocaleDisplayName(ULocale)

Returns the display name of the provided ulocale.

[Android.Runtime.Register("localeDisplayName", "(Landroid/icu/util/ULocale;)Ljava/lang/String;", "GetLocaleDisplayName_Landroid_icu_util_ULocale_Handler", ApiSince=24)]
public abstract string? LocaleDisplayName (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("localeDisplayName", "(Landroid/icu/util/ULocale;)Ljava/lang/String;", "GetLocaleDisplayName_Landroid_icu_util_ULocale_Handler", ApiSince=24)>]
abstract member LocaleDisplayName : Android.Icu.Util.ULocale -> string

Parameters

locale
ULocale

the locale whose display name to return

Returns

the display name of the provided locale

Attributes

Remarks

Returns the display name of the provided ulocale. When no display names are available for all or portions of the original locale ID, those portions may be used directly (possibly in a more canonical form) as part of the returned display name.

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

LocaleDisplayName(Locale)

Returns the display name of the provided locale.

[Android.Runtime.Register("localeDisplayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetLocaleDisplayName_Ljava_util_Locale_Handler", ApiSince=24)]
public abstract string? LocaleDisplayName (Java.Util.Locale? locale);
[<Android.Runtime.Register("localeDisplayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetLocaleDisplayName_Ljava_util_Locale_Handler", ApiSince=24)>]
abstract member LocaleDisplayName : Java.Util.Locale -> string

Parameters

locale
Locale

the locale whose display name to return

Returns

the display name of the provided locale

Attributes

Remarks

Returns the display name of the provided locale. When no display names are available for all or portions of the original locale ID, those portions may be used directly (possibly in a more canonical form) as part of the returned display name.

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

LocaleDisplayName(String)

Returns the display name of the provided locale id.

[Android.Runtime.Register("localeDisplayName", "(Ljava/lang/String;)Ljava/lang/String;", "GetLocaleDisplayName_Ljava_lang_String_Handler", ApiSince=24)]
public abstract string? LocaleDisplayName (string? localeId);
[<Android.Runtime.Register("localeDisplayName", "(Ljava/lang/String;)Ljava/lang/String;", "GetLocaleDisplayName_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member LocaleDisplayName : string -> string

Parameters

localeId
String

the id of the locale whose display name to return

Returns

the display name of the provided locale

Attributes

Remarks

Returns the display name of the provided locale id. When no display names are available for all or portions of the original locale ID, those portions may be used directly (possibly in a more canonical form) as part of the returned display name.

Java documentation for android.icu.text.LocaleDisplayNames.localeDisplayName(java.lang.String).

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