SettingsViewModel

class SettingsViewModel @Inject constructor(userPreferences: UserPreferences, updateManager: UpdateManager) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(userPreferences: UserPreferences, updateManager: UpdateManager)

Properties

Link copied to clipboard
val aiBaseUrl: StateFlow<String>
Link copied to clipboard
val appMode: StateFlow<String>
Link copied to clipboard
val emailEnabled: StateFlow<Boolean>
Link copied to clipboard
val geminiApiKey: StateFlow<String>
Link copied to clipboard
val updateChannel: StateFlow<String>
Link copied to clipboard
val updateResult: StateFlow<UpdateResult?>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setEmailEnabled(enabled: Boolean)
Link copied to clipboard
Link copied to clipboard
fun setMode(mode: String)
Link copied to clipboard
fun setUpdateChannel(channel: String)