Freigeben über


Transliterator.GetDisplayName Method

Definition

Overloads

GetDisplayName(String)

Returns a name for this transliterator that is appropriate for display to the user in the default DISPLAY locale.

GetDisplayName(String, ULocale)

Returns a name for this transliterator that is appropriate for display to the user in the given locale.

GetDisplayName(String, Locale)

Returns a name for this transliterator that is appropriate for display to the user in the given locale.

GetDisplayName(String)

Returns a name for this transliterator that is appropriate for display to the user in the default DISPLAY locale.

[Android.Runtime.Register("getDisplayName", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=29)]
public static string? GetDisplayName (string? ID);
[<Android.Runtime.Register("getDisplayName", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=29)>]
static member GetDisplayName : string -> string

Parameters

ID
String

Returns

Attributes

Remarks

Returns a name for this transliterator that is appropriate for display to the user in the default DISPLAY locale. See #getDisplayName(String,Locale) for details.

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

GetDisplayName(String, ULocale)

Returns a name for this transliterator that is appropriate for display to the user in the given locale.

[Android.Runtime.Register("getDisplayName", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=29)]
public static string? GetDisplayName (string? id, Android.Icu.Util.ULocale? inLocale);
[<Android.Runtime.Register("getDisplayName", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=29)>]
static member GetDisplayName : string * Android.Icu.Util.ULocale -> string

Parameters

id
String
inLocale
ULocale

the ULocale in which the display name should be localized.

Returns

Attributes

Remarks

Returns a name for this transliterator that is appropriate for display to the user in the given locale. This name is taken from the locale resource data in the standard manner of the java.text package.

If no localized names exist in the system resource bundles, a name is synthesized using a localized MessageFormat pattern from the resource data. The arguments to this pattern are an integer followed by one or two strings. The integer is the number of strings, either 1 or 2. The strings are formed by splitting the ID for this transliterator at the first '-'. If there is no '-', then the entire ID forms the only string.

Java documentation for android.icu.text.Transliterator.getDisplayName(java.lang.String, 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

GetDisplayName(String, Locale)

Returns a name for this transliterator that is appropriate for display to the user in the given locale.

[Android.Runtime.Register("getDisplayName", "(Ljava/lang/String;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=29)]
public static string? GetDisplayName (string? id, Java.Util.Locale? inLocale);
[<Android.Runtime.Register("getDisplayName", "(Ljava/lang/String;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=29)>]
static member GetDisplayName : string * Java.Util.Locale -> string

Parameters

id
String
inLocale
Locale

the Locale in which the display name should be localized.

Returns

Attributes

Remarks

Returns a name for this transliterator that is appropriate for display to the user in the given locale. This name is taken from the locale resource data in the standard manner of the java.text package.

If no localized names exist in the system resource bundles, a name is synthesized using a localized MessageFormat pattern from the resource data. The arguments to this pattern are an integer followed by one or two strings. The integer is the number of strings, either 1 or 2. The strings are formed by splitting the ID for this transliterator at the first '-'. If there is no '-', then the entire ID forms the only string.

Java documentation for android.icu.text.Transliterator.getDisplayName(java.lang.String, 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