Common
object DateRangePickerDefaults
Contains default values used by the DateRangePicker.
Functions
DateRangePickerTitle
@Composable
fun DateRangePickerTitle(
displayMode: DisplayMode,
modifier: Modifier = Modifier,
contentColor: Color = DatePickerDefaults.colors().titleContentColor,
)
A default date range picker title composable.
Parameters
| displayMode | the current DisplayMode |
| modifier | a Modifier to be applied for the title |
| contentColor | the content color of this title |
DateRangePickerHeadline
@Composable
fun DateRangePickerHeadline(
@Suppress("AutoBoxing") selectedStartDateMillis: Long?,
@Suppress("AutoBoxing") selectedEndDateMillis: Long?,
displayMode: DisplayMode,
dateFormatter: DatePickerFormatter,
modifier: Modifier = Modifier,
contentColor: Color = DatePickerDefaults.colors().headlineContentColor,
)
A default date picker headline composable lambda that displays a default headline text when there is no date selection, and an actual date string when there is.
Parameters
| selectedStartDateMillis | a timestamp that represents the selected start date start of the day in UTC milliseconds from the epoch |
| selectedEndDateMillis | a timestamp that represents the selected end date start of the day in UTC milliseconds from the epoch |
| displayMode | the current DisplayMode |
| dateFormatter | a DatePickerFormatter |
| modifier | a Modifier to be applied for the headline |
| contentColor | the content color of this headline |