Package-level declarations
Functions
Link copied to clipboard
Link copied to clipboard
fun PreferenceScope.PreferenceTime(value: MutableState<LocalTime>, is24Hours: Boolean = is24HourFormat(), formatter: @Composable (time: LocalTime) -> String = { defaultTimeFormat(is24Hours, 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 = PreferenceTimeDefaults.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 ->
PreferenceTimeDefaults.dialog(
dialogState,
value.value,
{ value.value = it },
is24Hours,
title,
icon
)
})
fun PreferenceScope.PreferenceTime(value: LocalTime, onValueChange: (value: LocalTime) -> Unit, is24Hours: Boolean = is24HourFormat(), formatter: @Composable (time: LocalTime) -> String = { defaultTimeFormat(is24Hours, 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 = PreferenceTimeDefaults.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 ->
PreferenceTimeDefaults.dialog(dialogState, value, onValueChange, is24Hours, title, icon)
})
A color preference item - this item provides a time picker dialog to change this preference