androidx.compose.material3

SelectableDates

Interface

No hand-written docs yet.

An interface that controls the selectable dates and years in the date pickers UI.

interface SelectableDates

How to get one

Ready-made values and functions that return it

Used by

Parameters that take a SelectableDates.

Functions

isSelectableDate

fun isSelectableDate(utcTimeMillis: Long): Boolean

Returns true if the date item representing the utcTimeMillis should be enabled for selection in the UI.

isSelectableYear

fun isSelectableYear(year: Int): Boolean

Returns true if a given year should be enabled for selection in the UI. When a year is defined as non selectable, all the dates in that year will also be non selectable.

Library docs

An interface that controls the selectable dates and years in the date pickers UI.