toggle menu
JchuComponents
androidJvm
switch theme
search in API
jchucomponents-prefs
/
com.jeluchu.prefs.datastore
/
DataStoreHelpers
/
getPreference
get
Preference
fun
<
T
>
getPreference
(
key
:
Preferences.Key
<
T
>
)
:
T
?
fun
getPreference
(
key
:
Preferences.Key
<
Int
>
,
default
:
Int
=
Int.empty()
)
:
Int
fun
getPreference
(
key
:
Preferences.Key
<
Long
>
,
default
:
Long
=
Long.empty()
)
:
Long
fun
getPreference
(
key
:
Preferences.Key
<
Float
>
,
default
:
Float
=
Float.empty()
)
:
Float
fun
getPreference
(
key
:
Preferences.Key
<
String
>
,
default
:
String
=
String.empty()
)
:
String
fun
getPreference
(
key
:
Preferences.Key
<
Boolean
>
,
default
:
Boolean
=
false
)
:
Boolean