app
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
app
app
/
com.fam007e.receipts.ui.screens.settings
/
SettingsViewModel
Settings
View
Model
class
SettingsViewModel
@
Inject
constructor
(
userPreferences
:
UserPreferences
,
updateManager
:
UpdateManager
)
:
ViewModel
Members
Constructors
Settings
View
Model
Link copied to clipboard
@
Inject
constructor
(
userPreferences
:
UserPreferences
,
updateManager
:
UpdateManager
)
Properties
ai
Base
Url
Link copied to clipboard
val
aiBaseUrl
:
StateFlow
<
String
>
app
Mode
Link copied to clipboard
val
appMode
:
StateFlow
<
String
>
email
Enabled
Link copied to clipboard
val
emailEnabled
:
StateFlow
<
Boolean
>
gemini
Api
Key
Link copied to clipboard
val
geminiApiKey
:
StateFlow
<
String
>
update
Channel
Link copied to clipboard
val
updateChannel
:
StateFlow
<
String
>
update
Result
Link copied to clipboard
val
updateResult
:
StateFlow
<
UpdateResult
?
>
Functions
add
Closeable
Link copied to clipboard
open
fun
addCloseable
(
closeable
:
AutoCloseable
)
fun
addCloseable
(
key
:
String
,
closeable
:
AutoCloseable
)
check
For
Updates
Link copied to clipboard
fun
checkForUpdates
(
)
get
Closeable
Link copied to clipboard
fun
<
T
:
AutoCloseable
>
getCloseable
(
key
:
String
)
:
T
?
set
Ai
Base
Url
Link copied to clipboard
fun
setAiBaseUrl
(
url
:
String
)
set
Email
Enabled
Link copied to clipboard
fun
setEmailEnabled
(
enabled
:
Boolean
)
set
Gemini
Api
Key
Link copied to clipboard
fun
setGeminiApiKey
(
key
:
String
)
set
Mode
Link copied to clipboard
fun
setMode
(
mode
:
String
)
set
Update
Channel
Link copied to clipboard
fun
setUpdateChannel
(
channel
:
String
)