CalendarConstraints.DateValidator

public static interface CalendarConstraints.DateValidator
implements Parcelable

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


Used to determine whether MaterialCalendar 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