Interface

SelectableDates

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

Source set: Common
public interface SelectableDates

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

Functions

isSelectableDate

Source set: Common
public fun isSelectableDate(utcTimeMillis: Long): Boolean

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

isSelectableYear

Source set: Common
public 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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: