Package-level declarations

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun PreferenceScope.PreferenceDate(value: MutableState<LocalDate>, firstDayOfWeek: DayOfWeek = DayOfWeek.MONDAY, formatter: (date: LocalDate) -> String = { // comes from the ComposeDialog library defaultFormatterSelectedDate(it) }, title: String, enabled: Dependency = Dependency.Enabled, visible: Dependency = Dependency.Enabled, subtitle: String? = null, icon: @Composable () -> Unit? = null, itemStyle: PreferenceItemStyle = LocalPreferenceSettings.current.style.defaultItemStyle, itemSetup: PreferenceItemSetup = PreferenceDateDefaults.itemSetup(), titleRenderer: @Composable (text: AnnotatedString) -> Unit = { Text(it) }, subtitleRenderer: @Composable (text: AnnotatedString) -> Unit = { Text(it) }, filterTags: List<String> = emptyList(), dialog: @Composable (state: DialogState) -> Unit = { dialogState -> PreferenceDateDefaults.dialog(dialogState, value.value, { value.value = it }, firstDayOfWeek, formatter, title, icon) })
fun PreferenceScope.PreferenceDate(value: LocalDate, onValueChange: (date: LocalDate) -> Unit, firstDayOfWeek: DayOfWeek = DayOfWeek.MONDAY, formatter: (date: LocalDate) -> String = { // comes from the ComposeDialog library defaultFormatterSelectedDate(it) }, title: String, enabled: Dependency = Dependency.Enabled, visible: Dependency = Dependency.Enabled, subtitle: String? = null, icon: @Composable () -> Unit? = null, itemStyle: PreferenceItemStyle = LocalPreferenceSettings.current.style.defaultItemStyle, itemSetup: PreferenceItemSetup = PreferenceDateDefaults.itemSetup(), titleRenderer: @Composable (text: AnnotatedString) -> Unit = { Text(it) }, subtitleRenderer: @Composable (text: AnnotatedString) -> Unit = { Text(it) }, filterTags: List<String> = emptyList(), dialog: @Composable (state: DialogState) -> Unit = { state -> PreferenceDateDefaults.dialog(state, value, onValueChange, firstDayOfWeek, formatter, title, icon) })

A date preference item - this item provides a date dialog to change this preference