DateRangePickerDefaults
-
Cmn
object DateRangePickerDefaults
Contains default values used by the DateRangePicker.
Summary
Public functions |
||
|---|---|---|
Unit |
@ComposableA 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. |
Cmn
|
Unit |
@ComposableA default date range picker title composable. |
Cmn
|
Public functions
DateRangePickerHeadline
@Composable
fun DateRangePickerHeadline(
selectedStartDateMillis: Long?,
selectedEndDateMillis: Long?,
displayMode: DisplayMode,
dateFormatter: DatePickerFormatter,
modifier: Modifier = Modifier,
contentColor: Color = DatePickerDefaults.colors().headlineContentColor
): Unit
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: Long? |
a timestamp that represents the selected start date start of the day in UTC milliseconds from the epoch |
selectedEndDateMillis: Long? |
a timestamp that represents the selected end date start of the day in UTC milliseconds from the epoch |
displayMode: DisplayMode |
the current |
dateFormatter: DatePickerFormatter |
|
modifier: Modifier = Modifier |
a |
contentColor: Color = DatePickerDefaults.colors().headlineContentColor |
the content color of this headline |
DateRangePickerTitle
@Composable
fun DateRangePickerTitle(
displayMode: DisplayMode,
modifier: Modifier = Modifier,
contentColor: Color = DatePickerDefaults.colors().titleContentColor
): Unit
A default date range picker title composable.
| Parameters | |
|---|---|
displayMode: DisplayMode |
the current |
modifier: Modifier = Modifier |
a |
contentColor: Color = DatePickerDefaults.colors().titleContentColor |
the content color of this title |