Java.Util.Locale.GetDisplayName Method
Returns this locale's language name, country name, and variant, localized to locale.

Syntax

[Android.Runtime.Register("getDisplayName", "(Ljava/util/Locale;)Ljava/lang/String;", "")]
public string GetDisplayName (Locale locale)

Parameters

locale
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns this locale's language name, country name, and variant, localized to locale. The exact output form depends on whether this locale corresponds to a specific language, script, country and variant.

For example:

  • new Locale("en").getDisplayName(Locale.US) -> English
  • new Locale("en", "US").getDisplayName(Locale.US) -> English (United States)
  • new Locale("en", "US", "POSIX").getDisplayName(Locale.US) -> English (United States,Computer)
  • Locale.fromLanguageTag("zh-Hant-CN").getDisplayName(Locale.US) -> Chinese (Traditional Han,China)
  • new Locale("en").getDisplayName(Locale.FRANCE) -> anglais
  • new Locale("en", "US").getDisplayName(Locale.FRANCE) -> anglais (États-Unis)
  • new Locale("en", "US", "POSIX").getDisplayName(Locale.FRANCE) -> anglais (États-Unis,informatique).

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1