CalendarConstraints

public final class CalendarConstraints
extends Object implements Parcelable

java.lang.Object
   ↳ com.google.android.material.datepicker.CalendarConstraints


Used to limit the display range of MaterialCalendar and set an openAt month.

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

Summary

Nested classes

class CalendarConstraints.Builder

Builder for CalendarConstraints

interface CalendarConstraints.DateValidator

Used to determine whether MaterialCalendar days are enabled. 

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<CalendarConstraints> CREATOR

Parcelable.Creator

Public methods

int describeContents()
boolean equals(Object o)
CalendarConstraints.DateValidator getDateValidator()

Returns the CalendarConstraints.DateValidator that determines whether a date can be clicked and selected.

int hashCode()
void writeToParcel(Parcel dest, int flags)

Inherited methods

From class java.lang.Object
From interface android.os.Parcelable

Fields

CREATOR

Creator<CalendarConstraints> CREATOR

Parcelable.Creator

Public methods

describeContents

int describeContents ()

Returns
int

equals

boolean equals (Object o)

Parameters
o Object

Returns
boolean

getDateValidator

CalendarConstraints.DateValidator getDateValidator ()

Returns the CalendarConstraints.DateValidator that determines whether a date can be clicked and selected.

Returns
CalendarConstraints.DateValidator

hashCode

int hashCode ()

Returns
int

writeToParcel

void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int