Język

ChronoField.GetDisplayName(Locale) Method

Definition

Gets the display name of this field for the specified locale.

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

Parameters

locale
Locale

The locale for the display name. Must not be null.

Returns

The localized name, or the field's default name if no localized name is available.

Implements

Attributes

Remarks

Android uses ICU display names for fields that have a localization key. Other fields use their default names.

Source for the display-name lookup and fallback.

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