rememberStylishDateRangePickerState

fun rememberStylishDateRangePickerState(initialSelectedStartDateMillis: Long? = null, initialSelectedEndDateMillis: Long? = null, initialDisplayedMonthMillis: Long? = initialSelectedStartDateMillis, yearRange: IntRange = DatePickerDefaults.YearRange, initialDisplayMode: DisplayMode = DisplayMode.Picker, selectableDates: SelectableDates = DatePickerDefaults.AllDates): DateRangePickerState

Creates and remembers a DateRangePickerState for use with StylishDateRangePicker.

This is the Finish-layer wrapper around the Material 3 rememberDateRangePickerState, keeping the experimental M3 API behind the Stylish opt-in.

Parameters

initialSelectedStartDateMillis

The initially selected start date as epoch milliseconds (UTC midnight), or null for none.

initialSelectedEndDateMillis

The initially selected end date as epoch milliseconds (UTC midnight), or null for none.

initialDisplayedMonthMillis

The initially displayed month as epoch milliseconds, or null to default to the selected start date's month.

yearRange

The range of selectable years. Defaults to DatePickerDefaults.YearRange.

initialDisplayMode

The mode the picker opens in. Defaults to the calendar picker mode.

selectableDates

A policy deciding which dates may be selected. Defaults to DatePickerDefaults.AllDates.

See also