contains

fun contains(date: LocalDate): Boolean

Returns whether date is directly selectable.

dayItems is checked after the selected year/month maximum day and constraints are applied.


fun contains(year: Int, month: Int, day: Int): Boolean

Returns whether year, month, and day are directly selectable.

Values outside the supported year, month, or day ranges return false. A day greater than the maximum valid day for year and month also returns false.


fun contains(dateRange: DateRange): Boolean

Returns whether both boundaries of dateRange are directly selectable.

This checks the start and end dates used by io.github.kezlab.compose.pickers.date.DateRangePicker. It does not require every date inside dateRange to appear in dayItems.


fun contains(startDate: LocalDate, endDate: LocalDate): Boolean

Returns whether startDate and endDate are directly selectable range boundaries.

Unlike DateRange, this overload accepts unordered inputs. The result only checks whether both provided boundary dates are selectable; it does not require every date between them to appear in dayItems.


fun contains(startYear: Int, startMonth: Int, startDay: Int, endYear: Int, endMonth: Int, endDay: Int): Boolean

Returns whether explicit start and end date parts are directly selectable range boundaries.

Values outside the supported year, month, or day ranges return false. A day greater than the maximum valid day for its year and month also returns false.