Java.Util.Calendar.GetDisplayNames Method
Returns a map of human-readable strings to corresponding values, for the given field, style, and locale.

Syntax

[Android.Runtime.Register("getDisplayNames", "(IILjava/util/Locale;)Ljava/util/Map;", "GetGetDisplayNames_IILjava_util_Locale_Handler")]
public virtual IDictionary<string, Java.Lang.Integer> GetDisplayNames (int p0, int p1, Locale p2)

Parameters

field
the field
style
SHORT, LONG, or ALL_STYLES
locale
the locale

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif locale == null
Java.Lang.IllegalArgumentExceptionif field or style is invalid

Remarks

Returns a map of human-readable strings to corresponding values, for the given field, style, and locale. Returns null if no strings are available.

For example, getDisplayNames(MONTH, ALL_STYLES, Locale.US) would contain mappings from "Jan" and "January" to Calendar.January, and so on.

[Android Documentation]

Requirements

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