app
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
app
app
/
com.fam007e.receipts.data.preferences
/
UserPreferences
User
Preferences
@
Singleton
class
UserPreferences
@
Inject
constructor
(
dataStore
:
DataStore
<
Preferences
>
)
Members
Constructors
User
Preferences
Link copied to clipboard
@
Inject
constructor
(
dataStore
:
DataStore
<
Preferences
>
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
ai
Base
Url
Link copied to clipboard
val
aiBaseUrl
:
Flow
<
String
>
app
Mode
Link copied to clipboard
val
appMode
:
Flow
<
String
>
daily
Coach
Count
Link copied to clipboard
val
dailyCoachCount
:
Flow
<
Int
>
email
Enabled
Link copied to clipboard
val
emailEnabled
:
Flow
<
Boolean
>
gemini
Api
Key
Link copied to clipboard
val
geminiApiKey
:
Flow
<
String
?
>
is
Onboarded
Link copied to clipboard
val
isOnboarded
:
Flow
<
Boolean
>
last
Expose
Time
Link copied to clipboard
val
lastExposeTime
:
Flow
<
Long
>
loot
Credits
Link copied to clipboard
val
lootCredits
:
Flow
<
Int
>
update
Channel
Link copied to clipboard
val
updateChannel
:
Flow
<
String
>
Functions
add
Loot
Credits
Link copied to clipboard
suspend
fun
addLootCredits
(
amount
:
Int
)
increment
Coach
Count
Link copied to clipboard
suspend
fun
incrementCoachCount
(
)
set
Ai
Base
Url
Link copied to clipboard
suspend
fun
setAiBaseUrl
(
url
:
String
)
set
Email
Enabled
Link copied to clipboard
suspend
fun
setEmailEnabled
(
enabled
:
Boolean
)
set
Gemini
Api
Key
Link copied to clipboard
suspend
fun
setGeminiApiKey
(
key
:
String
)
set
Last
Expose
Time
Link copied to clipboard
suspend
fun
setLastExposeTime
(
time
:
Long
)
set
Mode
Link copied to clipboard
suspend
fun
setMode
(
mode
:
String
)
set
Onboarded
Link copied to clipboard
suspend
fun
setOnboarded
(
onboarded
:
Boolean
)
set
Update
Channel
Link copied to clipboard
suspend
fun
setUpdateChannel
(
channel
:
String
)
use
Loot
Credits
Link copied to clipboard
suspend
fun
useLootCredits
(
amount
:
Int
)
:
Boolean