SettingsEvent

sealed interface SettingsEvent

All of the events that can be performed by a user on the SettingsViewModel.

Inheritors

Types

Link copied to clipboard
data class SetColor(val color: AppColor) : SettingsEvent

Sets the SettingsState.color to the color value.

Link copied to clipboard
data class SetHandedness(val leftHanded: Boolean) : SettingsEvent

Toggles the handedness in landscape mode.

Link copied to clipboard
data class SetSpacing(val spacing: String) : SettingsEvent

Toggles between monospace and the device's system default spacing.

Link copied to clipboard
data class SetTheme(val theme: AppTheme) : SettingsEvent

Sets the SettingsState.theme to the theme value.