Freigeben über


Calendar.HandleGetLimit(CalendarField, Int32) Method

Definition

Subclass API for defining limits of different types.

[Android.Runtime.Register("handleGetLimit", "(II)I", "GetHandleGetLimit_IIHandler", ApiSince=24)]
protected abstract int HandleGetLimit (Android.Icu.Util.CalendarField field, int limitType);
[<Android.Runtime.Register("handleGetLimit", "(II)I", "GetHandleGetLimit_IIHandler", ApiSince=24)>]
abstract member HandleGetLimit : Android.Icu.Util.CalendarField * int -> int

Parameters

field
CalendarField

one of the above field numbers

limitType
Int32

one of MINIMUM, GREATEST_MINIMUM, LEAST_MAXIMUM, or MAXIMUM

Returns

Attributes

Remarks

Subclass API for defining limits of different types. Subclasses must implement this method to return limits for the following fields:

ERA
            YEAR
            MONTH
            WEEK_OF_YEAR
            WEEK_OF_MONTH
            DAY_OF_MONTH
            DAY_OF_YEAR
            DAY_OF_WEEK_IN_MONTH
            YEAR_WOY
            EXTENDED_YEAR

Java documentation for android.icu.util.Calendar.handleGetLimit(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