BasePreferenceCustom

fun PreferenceScope.BasePreferenceCustom(modifier: Modifier = Modifier, enabled: Dependency = Dependency.Enabled, visible: Dependency = Dependency.Enabled, onClick: () -> Unit? = null, onLongClick: () -> Unit? = null, itemStyle: PreferenceItemStyle = LocalPreferenceSettings.current.style.defaultItemStyle, itemSetup: PreferenceItemSetup = PreferenceItemSetup(), filterTags: List<String> = emptyList(), content: @Composable ColumnScope.() -> Unit)

this is the default root composable that allows you to create a custom preference with your own content. It takes care of the enabled/visibiltiy state of the preference (depending on the dependencies as well as on the hierarchical position)

 

In most cases this should be the root container for any custom preference.

Parameters

modifier

the Modifier for this composable

enabled

the Dependency that from which the enabled state is derived from

visible

the Dependency that from which the visibility state is derived from

onClick

the optional click listener for this item

onLongClick

the optional long click listener for this item

itemStyle

the PreferenceItemStyle of this this item - use PreferenceStyleDefaults.item and all the predefined styles in PreferenceStyleDefaults to provide your own style

itemSetup

the PreferenceItemSetup of this this item which allows you to influence some of the behaviour and style specifically for a special item type

filterTags

additional tags to title and sub title for the filter functionality

content

the content of this composable