Share via


ULocale.GetDisplayVariant Method

Definition

Overloads

GetDisplayVariant(ULocale)

Returns this locale's variant localized for display in the provided locale.

GetDisplayVariant(String, ULocale)

<strong>[icu]</strong> Returns a locale's variant localized for display in the provided locale.

GetDisplayVariant(String, String)

<strong>[icu]</strong> Returns a locale's variant localized for display in the provided locale.

GetDisplayVariant(ULocale)

Returns this locale's variant localized for display in the provided locale.

[Android.Runtime.Register("getDisplayVariant", "(Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=24)]
public string? GetDisplayVariant (Android.Icu.Util.ULocale? displayLocale);
[<Android.Runtime.Register("getDisplayVariant", "(Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=24)>]
member this.GetDisplayVariant : Android.Icu.Util.ULocale -> string

Parameters

displayLocale
ULocale

the locale in which to display the name.

Returns

the localized variant name.

Attributes

Remarks

Returns this locale's variant localized for display in the provided locale.

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

GetDisplayVariant(String, ULocale)

<strong>[icu]</strong> Returns a locale's variant localized for display in the provided locale.

[Android.Runtime.Register("getDisplayVariant", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=24)]
public static string? GetDisplayVariant (string? localeID, Android.Icu.Util.ULocale? displayLocale);
[<Android.Runtime.Register("getDisplayVariant", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Ljava/lang/String;", "", ApiSince=24)>]
static member GetDisplayVariant : string * Android.Icu.Util.ULocale -> string

Parameters

localeID
String

the id of the locale whose variant will be displayed.

displayLocale
ULocale

the locale in which to display the name.

Returns

the localized variant name.

Attributes

Remarks

<strong>[icu]</strong> Returns a locale's variant localized for display in the provided locale. This is a cover for the ICU4C API.

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

GetDisplayVariant(String, String)

<strong>[icu]</strong> Returns a locale's variant localized for display in the provided locale.

[Android.Runtime.Register("getDisplayVariant", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public static string? GetDisplayVariant (string? localeID, string? displayLocaleID);
[<Android.Runtime.Register("getDisplayVariant", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
static member GetDisplayVariant : string * string -> string

Parameters

localeID
String

the id of the locale whose variant will be displayed

displayLocaleID
String

the id of the locale in which to display the name.

Returns

the localized variant name.

Attributes

Remarks

<strong>[icu]</strong> Returns a locale's variant localized for display in the provided locale. This is a cover for the ICU4C API.

Java documentation for android.icu.util.ULocale.getDisplayVariant(java.lang.String, 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