Android 12 Developer Preview is here! Try it out, and give us your feedback!

CalendarConstraints.DateValidator

public static interface CalendarConstraints.DateValidator
implements Parcelable

com.google.android.material.datepicker.CalendarConstraints.DateValidator


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

Public methods

abstract boolean isValid(long date)

Returns true if the provided date is enabled.

Inherited methods

Public methods

isValid

public abstract boolean isValid (long date)

Returns true if the provided date is enabled.

Parameters
date long

Returns
boolean