Udostępnij za pośrednictwem


Currency.IsAvailable(String, Date, Date) Method

Definition

Queries if the given ISO 4217 3-letter code is available on the specified date range.

[Android.Runtime.Register("isAvailable", "(Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)Z", "", ApiSince=24)]
public static bool IsAvailable (string? code, Java.Util.Date? from, Java.Util.Date? to);
[<Android.Runtime.Register("isAvailable", "(Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)Z", "", ApiSince=24)>]
static member IsAvailable : string * Java.Util.Date * Java.Util.Date -> bool

Parameters

code
String

The ISO 4217 3-letter code.

from
Date

The lower bound of the date range, inclusive. When from is null, check the availability of the currency any date before to

to
Date

The upper bound of the date range, inclusive. When to is null, check the availability of the currency any date after from

Returns

true if the given ISO 4217 3-letter code is supported on the specified date range.

Attributes

Remarks

Queries if the given ISO 4217 3-letter code is available on the specified date range.

Note: For checking availability of a currency on a specific date, specify the date on both from and to. When both from and to are null, this method checks if the specified currency is available all time.

Java documentation for android.icu.util.Currency.isAvailable(java.lang.String, java.util.Date, java.util.Date).

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