Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun PreferenceScope.PreferenceBool(style: PreferenceBool.Style = PreferenceBool.Style.Switch, value: MutableState<Boolean>, 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 = PreferenceBoolDefaults.itemSetup(), titleRenderer: @Composable (text: AnnotatedString) -> Unit = { Text(it) }, subtitleRenderer: @Composable (text: AnnotatedString) -> Unit = { Text(it) }, filterTags: List<String> = emptyList())
fun PreferenceScope.PreferenceBool(style: PreferenceBool.Style = PreferenceBool.Style.Switch, value: Boolean, onValueChange: (selected: Boolean) -> Unit, 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 = PreferenceBoolDefaults.itemSetup(), titleRenderer: @Composable (text: AnnotatedString) -> Unit = { Text(it) }, subtitleRenderer: @Composable (text: AnnotatedString) -> Unit = { Text(it) }, filterTags: List<String> = emptyList())

A bool preference item - this item shows a checkbox/switch which reflects the preference state