Freigeben über


Currency.GetDisplayName(Locale) Method

Definition

Returns the display name for this currency in the given locale.

[Android.Runtime.Register("getDisplayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetGetDisplayName_Ljava_util_Locale_Handler", ApiSince=24)]
public virtual string? GetDisplayName (Java.Util.Locale? locale);
[<Android.Runtime.Register("getDisplayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetGetDisplayName_Ljava_util_Locale_Handler", ApiSince=24)>]
abstract member GetDisplayName : Java.Util.Locale -> string
override this.GetDisplayName : Java.Util.Locale -> string

Parameters

locale
Locale

locale in which to display currency

Returns

The display name of this currency for the specified locale

Attributes

Remarks

Returns the display name for this currency in the given locale. If the resource data for the given locale contains no entry for this currency, then the ISO 4217 code is returned.

Note: This method is a convenience equivalent for java.util.Currency#getDisplayName(java.util.Locale) and is equivalent to getName(locale, LONG_NAME, null).

Java documentation for android.icu.util.Currency.getDisplayName(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