RelativeDateTimeFormatter.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
GetInstance(ULocale) |
Returns a RelativeDateTimeFormatter for a particular locale. |
GetInstance(Locale) |
Returns a RelativeDateTimeFormatter for a particular |
GetInstance(ULocale, NumberFormat) |
Returns a RelativeDateTimeFormatter for a particular locale that uses a particular NumberFormat object. |
GetInstance(Locale, NumberFormat) |
Returns a RelativeDateTimeFormatter for a particular |
GetInstance(ULocale, NumberFormat, RelativeDateTimeFormatter+Style, DisplayContext) |
GetInstance(ULocale)
Returns a RelativeDateTimeFormatter for a particular locale.
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)]
public static Android.Icu.Text.RelativeDateTimeFormatter? GetInstance (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale -> Android.Icu.Text.RelativeDateTimeFormatter
Parameters
- locale
- ULocale
the locale.
Returns
An instance of RelativeDateTimeFormatter.
- Attributes
Remarks
Returns a RelativeDateTimeFormatter for a particular 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(Locale)
Returns a RelativeDateTimeFormatter for a particular java.util.Locale
.
[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)]
public static Android.Icu.Text.RelativeDateTimeFormatter? GetInstance (Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale -> Android.Icu.Text.RelativeDateTimeFormatter
Parameters
- locale
- Locale
the java.util.Locale
.
Returns
An instance of RelativeDateTimeFormatter.
- Attributes
Remarks
Returns a RelativeDateTimeFormatter for a particular java.util.Locale
.
Java documentation for android.icu.text.RelativeDateTimeFormatter.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, NumberFormat)
Returns a RelativeDateTimeFormatter for a particular locale that uses a particular NumberFormat object.
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;Landroid/icu/text/NumberFormat;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)]
public static Android.Icu.Text.RelativeDateTimeFormatter? GetInstance (Android.Icu.Util.ULocale? locale, Android.Icu.Text.NumberFormat? nf);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;Landroid/icu/text/NumberFormat;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale * Android.Icu.Text.NumberFormat -> Android.Icu.Text.RelativeDateTimeFormatter
Parameters
- locale
- ULocale
the locale
- nf
- NumberFormat
the number format object. It is defensively copied to ensure thread-safety and immutability of this class.
Returns
An instance of RelativeDateTimeFormatter.
- Attributes
Remarks
Returns a RelativeDateTimeFormatter for a particular locale that uses a particular NumberFormat object.
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, NumberFormat)
Returns a RelativeDateTimeFormatter for a particular java.util.Locale
that uses a
particular NumberFormat object.
[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;Landroid/icu/text/NumberFormat;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)]
public static Android.Icu.Text.RelativeDateTimeFormatter? GetInstance (Java.Util.Locale? locale, Android.Icu.Text.NumberFormat? nf);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;Landroid/icu/text/NumberFormat;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale * Android.Icu.Text.NumberFormat -> Android.Icu.Text.RelativeDateTimeFormatter
Parameters
- locale
- Locale
the java.util.Locale
- nf
- NumberFormat
the number format object. It is defensively copied to ensure thread-safety and immutability of this class.
Returns
An instance of RelativeDateTimeFormatter.
- Attributes
Remarks
Returns a RelativeDateTimeFormatter for a particular java.util.Locale
that uses a particular NumberFormat object.
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, NumberFormat, RelativeDateTimeFormatter+Style, DisplayContext)
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;Landroid/icu/text/NumberFormat;Landroid/icu/text/RelativeDateTimeFormatter$Style;Landroid/icu/text/DisplayContext;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)]
public static Android.Icu.Text.RelativeDateTimeFormatter? GetInstance (Android.Icu.Util.ULocale? locale, Android.Icu.Text.NumberFormat? nf, Android.Icu.Text.RelativeDateTimeFormatter.Style? style, Android.Icu.Text.DisplayContext? capitalizationContext);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;Landroid/icu/text/NumberFormat;Landroid/icu/text/RelativeDateTimeFormatter$Style;Landroid/icu/text/DisplayContext;)Landroid/icu/text/RelativeDateTimeFormatter;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale * Android.Icu.Text.NumberFormat * Android.Icu.Text.RelativeDateTimeFormatter.Style * Android.Icu.Text.DisplayContext -> Android.Icu.Text.RelativeDateTimeFormatter
Parameters
- locale
- ULocale
- nf
- NumberFormat
- capitalizationContext
- DisplayContext
Returns
- Attributes
Remarks
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.