DateRangePickerDefaults


Contains default values used by the DateRangePicker.

Summary

Public functions

Unit
@Composable
DateRangePickerHeadline(
    selectedStartDateMillis: Long?,
    selectedEndDateMillis: Long?,
    displayMode: DisplayMode,
    dateFormatter: DatePickerFormatter,
    modifier: Modifier,
    contentColor: Color
)

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.

Cmn
Unit
@Composable
DateRangePickerTitle(
    displayMode: DisplayMode,
    modifier: Modifier,
    contentColor: Color
)

A 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 DisplayMode

dateFormatter: DatePickerFormatter

a DatePickerFormatter

modifier: Modifier = Modifier

a Modifier to be applied for the headline

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 DisplayMode

modifier: Modifier = Modifier

a Modifier to be applied for the title

contentColor: Color = DatePickerDefaults.colors().titleContentColor

the content color of this title