Language

JapaneseEra.GetDisplayName(TextStyle, Locale) Method

Definition

Gets the textual representation of this era.

[Android.Runtime.Register("getDisplayName", "(Ljava/time/format/TextStyle;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=29)]
public string? GetDisplayName(Java.Time.Format.TextStyle? style, Java.Util.Locale? locale);
[<Android.Runtime.Register("getDisplayName", "(Ljava/time/format/TextStyle;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=29)>]
abstract member GetDisplayName : Java.Time.Format.TextStyle * Java.Util.Locale -> string
override this.GetDisplayName : Java.Time.Format.TextStyle * Java.Util.Locale -> string

Parameters

style
TextStyle

the style of the text required, not null

locale
Locale

the locale to use, not null

Returns

the text value of the era, not null

Implements

Attributes

Remarks

Gets the textual representation of this era. The built-in eras use the specified style and locale; if no textual mapping is found, the numeric value is returned. For supplemental eras, the configured era name or narrow abbreviation is returned without using the locale to select the text.

Java documentation for java.time.chrono.JapaneseEra.getDisplayName(java.time.format.TextStyle, java.util.Locale).

Java reference for java.time.chrono.JapaneseEra.getDisplayName.

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