Share via


Locale.GetDisplayScript(Locale) Method

Definition

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

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

Parameters

inLocale
Locale

The locale for which to retrieve the display script.

Returns

the display name of the script code for the current default Locale.Category#DISPLAY DISPLAY locale

Attributes

Remarks

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

Added in 1.7.

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