Udostępnij za pośrednictwem


Currency.GetInstance Method

Definition

Overloads

GetInstance(ULocale)

Returns a currency object for the default currency in the given locale.

GetInstance(Locale)

Returns a currency object for the default currency in the given locale.

GetInstance(String)

Returns a currency object given an ISO 4217 3-letter code.

GetInstance(ULocale)

Returns a currency object for the default currency in the given locale.

[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/util/Currency;", "", ApiSince=24)]
public static Android.Icu.Util.Currency? GetInstance (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/util/Currency;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale -> Android.Icu.Util.Currency

Parameters

locale
ULocale

Returns

Attributes

Remarks

Returns a currency object for the default currency in the given locale.

Java documentation for android.icu.util.Currency.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)

Returns a currency object for the default currency in the given locale.

[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/util/Currency;", "", ApiSince=24)]
public static Android.Icu.Util.Currency? GetInstance (Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/util/Currency;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale -> Android.Icu.Util.Currency

Parameters

locale
Locale

the locale

Returns

the currency object for this locale

Attributes

Remarks

Returns a currency object for the default currency in the given locale.

Java documentation for android.icu.util.Currency.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(String)

Returns a currency object given an ISO 4217 3-letter code.

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Landroid/icu/util/Currency;", "", ApiSince=24)]
public static Android.Icu.Util.Currency? GetInstance (string? theISOCode);
[<Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Landroid/icu/util/Currency;", "", ApiSince=24)>]
static member GetInstance : string -> Android.Icu.Util.Currency

Parameters

theISOCode
String

the iso code

Returns

the currency for this iso code

Attributes

Remarks

Returns a currency object given an ISO 4217 3-letter code.

Java documentation for android.icu.util.Currency.getInstance(java.lang.String).

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