Udostępnij za pośrednictwem


Locale.GetDisplayVariant(Locale) Method

Definition

Returns a name for the locale's variant code that is appropriate for display to the user.

[Android.Runtime.Register("getDisplayVariant", "(Ljava/util/Locale;)Ljava/lang/String;", "")]
public string GetDisplayVariant (Java.Util.Locale inLocale);
[<Android.Runtime.Register("getDisplayVariant", "(Ljava/util/Locale;)Ljava/lang/String;", "")>]
member this.GetDisplayVariant : Java.Util.Locale -> string

Parameters

inLocale
Locale

The locale for which to retrieve the display variant code.

Returns

The name of the display variant code appropriate to the given locale.

Attributes

Remarks

Returns a name for the locale's variant code that is appropriate for display to the user. If possible, the name will be localized for inLocale. If the locale doesn't specify a variant code, this function returns the empty string.

Java documentation for java.util.Locale.getDisplayVariant(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