CalendarConstraints.DateValidator

public static interface CalendarConstraints.DateValidator
implements Parcelable

com.google.android.material.datepicker.CalendarConstraints.DateValidator
CompositeDateValidator A CalendarConstraints.DateValidator that accepts a list of Date Validators. 
DateValidatorPointBackward A CalendarConstraints.DateValidator that enables only dates before a given point. 
DateValidatorPointForward A CalendarConstraints.DateValidator that enables dates from a given point forward. 


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

int CONTENTS_FILE_DESCRIPTOR

int PARCELABLE_WRITE_RETURN_VALUE

Public methods

abstract boolean isValid(long date)

Returns true if the provided date is enabled.

Inherited methods

abstract int describeContents()
abstract void writeToParcel(Parcel arg0, int arg1)

Public methods

isValid

public abstract boolean isValid (long date)

Returns true if the provided date is enabled.

Parameters
date long

Returns
boolean