Google 致力于为黑人社区推动种族平等。查看具体举措

CalendarConstraints.DateValidator

public static interface CalendarConstraints.DateValidator
implements Parcelable

com.google.android.material.datepicker.CalendarConstraints.DateValidator
Known Indirect Subclasses


Used to determine whether calendar days are enabled.

Extends Parcelable in order to maintain the DateValidator across device configuration changes. Parcelable breaks when passed between processes.

Summary

Inherited constants

From interface android.os.Parcelable

Public methods

abstract boolean isValid(long date)

Returns true if the provided date is enabled.

Inherited methods

From interface android.os.Parcelable

Public methods

isValid

boolean isValid (long date)

Returns true if the provided date is enabled.

Parameters
date long

Returns
boolean