Locale.GetDisplayVariant(Locale) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.