SettingsItem

fun SettingsItem(modifier: Modifier = Modifier, loading: Boolean = false, enabled: Boolean = true, selected: Boolean = false, startIcon: ImageVector? = null, text: UiText, animateBackground: Boolean = false, showChevron: Boolean = true, endValueText: UiText = UiText.empty, endValueContent: @Composable () -> Unit? = null, startIconContent: @Composable () -> Unit? = null, onClick: () -> Unit = {})(source)

Renders the SettingsItem UI for the SDAI presentation layer.

Author

Dmitriy Moroz

Parameters

modifier

Compose modifier applied to the rendered UI.

loading

loading value consumed by the API.

enabled

enabled value consumed by the API.

selected

selected value consumed by the API.

startIcon

start icon value consumed by the API.

text

text value consumed by the API.

animateBackground

animate background value consumed by the API.

showChevron

show chevron value consumed by the API.

endValueText

end value text value consumed by the API.

endValueContent

end value content value consumed by the API.

startIconContent

start icon content value consumed by the API.

onClick

callback invoked when the user activates the control.


fun SettingsItem(text: String, modifier: Modifier = Modifier, loading: Boolean = false, enabled: Boolean = true, selected: Boolean = false, animateBackground: Boolean = false, showChevron: Boolean = true, endValueText: String = "", endValueContent: @Composable () -> Unit? = null, startIconContent: @Composable () -> Unit? = null, onClick: () -> Unit = {})(source)

Renders the SettingsItem UI for the SDAI presentation layer.

Author

Dmitriy Moroz

Parameters

text

text value consumed by the API.

modifier

Compose modifier applied to the rendered UI.

loading

loading value consumed by the API.

enabled

enabled value consumed by the API.

selected

selected value consumed by the API.

animateBackground

animate background value consumed by the API.

showChevron

show chevron value consumed by the API.

endValueText

end value text value consumed by the API.

endValueContent

end value content value consumed by the API.

startIconContent

start icon content value consumed by the API.

onClick

callback invoked when the user activates the control.