Udostępnij za pośrednictwem


DateFormatSymbols.GetYearNames(Int32, Int32) Method

Definition

Returns cyclic year name strings if the calendar has them, for example: "jia-zi", "yi-chou", etc.

[Android.Runtime.Register("getYearNames", "(II)[Ljava/lang/String;", "GetGetYearNames_IIHandler", ApiSince=24)]
public virtual string[]? GetYearNames (int context, int width);
[<Android.Runtime.Register("getYearNames", "(II)[Ljava/lang/String;", "GetGetYearNames_IIHandler", ApiSince=24)>]
abstract member GetYearNames : int * int -> string[]
override this.GetYearNames : int * int -> string[]

Parameters

context
Int32

The usage context: FORMAT, STANDALONE.

width
Int32

The requested name width: WIDE, ABBREVIATED, SHORT, NARROW.

Returns

String[]

The year name strings, or null if they are not available for this calendar.

Attributes

Remarks

Returns cyclic year name strings if the calendar has them, for example: "jia-zi", "yi-chou", etc.

Java documentation for android.icu.text.DateFormatSymbols.getYearNames(int, int).

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