Udostępnij za pośrednictwem


Time.GetActualMaximum(TimeFormatValues) Method

Definition

Return the maximum possible value for the given field given the value of the other fields.

[Android.Runtime.Register("getActualMaximum", "(I)I", "GetGetActualMaximum_IHandler")]
public virtual int GetActualMaximum (Android.Text.Format.TimeFormatValues field);
[<Android.Runtime.Register("getActualMaximum", "(I)I", "GetGetActualMaximum_IHandler")>]
abstract member GetActualMaximum : Android.Text.Format.TimeFormatValues -> int
override this.GetActualMaximum : Android.Text.Format.TimeFormatValues -> int

Parameters

field
TimeFormatValues

one of the constants for HOUR, MINUTE, SECOND, etc.

Returns

the maximum value for the field.

Attributes

Remarks

Return the maximum possible value for the given field given the value of the other fields. Requires that it be normalized for MONTH_DAY and YEAR_DAY.

Java documentation for android.text.format.Time.getActualMaximum(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