LocaleDisplayNames.GetInstance 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.
Overloads
| Name | Description |
|---|---|
| GetInstance(ULocale) |
Convenience overload of |
| GetInstance(Locale) |
Convenience overload of |
| GetInstance(ULocale, DisplayContext[]) |
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided DisplayContext settings |
| GetInstance(ULocale, LocaleDisplayNames+DialectHandling) |
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling. |
| GetInstance(Locale, DisplayContext[]) |
Returns an instance of LocaleDisplayNames that returns names formatted for the provided Locale, using the provided DisplayContext settings |
GetInstance(ULocale)
Convenience overload of #getInstance(ULocale, DialectHandling) that specifies
STANDARD dialect handling.
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)]
public static Android.Icu.Text.LocaleDisplayNames? GetInstance(Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale -> Android.Icu.Text.LocaleDisplayNames
Parameters
- locale
- ULocale
the display locale
Returns
a LocaleDisplayNames instance
- Attributes
Remarks
Convenience overload of #getInstance(ULocale, DialectHandling) that specifies STANDARD dialect handling.
Java documentation for android.icu.text.LocaleDisplayNames.getInstance(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
GetInstance(Locale)
Convenience overload of #getInstance(Locale, DisplayContext...) that specifies
DisplayContext#STANDARD_NAMES.
[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)]
public static Android.Icu.Text.LocaleDisplayNames? GetInstance(Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale -> Android.Icu.Text.LocaleDisplayNames
Parameters
- locale
- Locale
the display java.util.Locale
Returns
a LocaleDisplayNames instance
- Attributes
Remarks
Convenience overload of #getInstance(Locale, DisplayContext...) that specifies DisplayContext#STANDARD_NAMES.
Java documentation for android.icu.text.LocaleDisplayNames.getInstance(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
GetInstance(ULocale, DisplayContext[])
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided DisplayContext settings
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;[Landroid/icu/text/DisplayContext;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)]
public static Android.Icu.Text.LocaleDisplayNames? GetInstance(Android.Icu.Util.ULocale? locale, params Android.Icu.Text.DisplayContext[]? contexts);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;[Landroid/icu/text/DisplayContext;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale * Android.Icu.Text.DisplayContext[] -> Android.Icu.Text.LocaleDisplayNames
Parameters
- locale
- ULocale
the display locale
- contexts
- DisplayContext[]
one or more context settings (e.g. for dialect handling, capitalization, etc.).
Returns
a LocaleDisplayNames instance
- Attributes
Remarks
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided DisplayContext settings
Android reference for android.icu.text.LocaleDisplayNames.getInstance.
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
GetInstance(ULocale, LocaleDisplayNames+DialectHandling)
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling.
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;Landroid/icu/text/LocaleDisplayNames$DialectHandling;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)]
public static Android.Icu.Text.LocaleDisplayNames? GetInstance(Android.Icu.Util.ULocale? locale, Android.Icu.Text.LocaleDisplayNames.DialectHandling? dialectHandling);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;Landroid/icu/text/LocaleDisplayNames$DialectHandling;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale * Android.Icu.Text.LocaleDisplayNames.DialectHandling -> Android.Icu.Text.LocaleDisplayNames
Parameters
- locale
- ULocale
the display locale
- dialectHandling
- LocaleDisplayNames.DialectHandling
how to select names for locales
Returns
a LocaleDisplayNames instance
- Attributes
Remarks
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling.
Android reference for android.icu.text.LocaleDisplayNames.getInstance.
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
GetInstance(Locale, DisplayContext[])
Returns an instance of LocaleDisplayNames that returns names formatted for the provided Locale, using the provided DisplayContext settings
[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;[Landroid/icu/text/DisplayContext;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)]
public static Android.Icu.Text.LocaleDisplayNames? GetInstance(Java.Util.Locale? locale, params Android.Icu.Text.DisplayContext[]? contexts);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;[Landroid/icu/text/DisplayContext;)Landroid/icu/text/LocaleDisplayNames;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale * Android.Icu.Text.DisplayContext[] -> Android.Icu.Text.LocaleDisplayNames
Parameters
- locale
- Locale
the display Locale
- contexts
- DisplayContext[]
one or more context settings (e.g. for dialect handling, capitalization, etc.).
Returns
a LocaleDisplayNames instance
- Attributes
Remarks
Returns an instance of LocaleDisplayNames that returns names formatted for the provided Locale, using the provided DisplayContext settings
Android reference for android.icu.text.LocaleDisplayNames.getInstance.
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.