toggle menu
JchuComponents
androidJvm
switch theme
search in API
jchucomponents-prefs
/
com.jeluchu.prefs.sharedprefs
/
SharedPrefsHelpers
Shared
Prefs
Helpers
class
SharedPrefsHelpers
Members
Constructors
Shared
Prefs
Helpers
Link copied to clipboard
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
clear
Session
Link copied to clipboard
fun
clearSession
(
)
delete
Value
Link copied to clipboard
fun
deleteValue
(
key
:
String
)
:
Boolean
get
Boolean
Link copied to clipboard
fun
getBoolean
(
key
:
String
,
defaultValue
:
Boolean
)
:
Boolean
get
Data
List
Link copied to clipboard
fun
<
T
>
getDataList
(
tag
:
String
?
)
:
List
<
T
>
?
get
Float
Link copied to clipboard
fun
getFloat
(
key
:
String
,
defaultValue
:
Float
)
:
Float
get
Int
Link copied to clipboard
fun
getInt
(
key
:
String
,
defaultValue
:
Int
)
:
Int
get
Long
Link copied to clipboard
fun
getLong
(
key
:
String
,
defaultValue
:
Long
)
:
Long
get
Object
Link copied to clipboard
fun
<
T
>
getObject
(
key
:
String
,
classType
:
Class
<
T
>
?
)
:
T
?
get
Objects
List
Link copied to clipboard
fun
<
T
>
getObjectsList
(
key
:
String
)
:
List
<
T
>
get
String
Link copied to clipboard
fun
getString
(
key
:
String
,
defaultValue
:
String
?
)
:
String
?
save
Boolean
Link copied to clipboard
fun
saveBoolean
(
key
:
String
?
,
value
:
Boolean
)
save
Float
Link copied to clipboard
fun
saveFloat
(
key
:
String
?
,
value
:
Float
)
save
Int
Link copied to clipboard
fun
saveInt
(
key
:
String
?
,
value
:
Int
)
save
Long
Link copied to clipboard
fun
saveLong
(
key
:
String
?
,
value
:
Long
)
save
Object
Link copied to clipboard
fun
<
T
>
saveObject
(
key
:
String
?
,
object
:
T
)
save
Objects
List
Link copied to clipboard
fun
<
T
>
saveObjectsList
(
key
:
String
?
,
objectList
:
List
<
T
>
?
)
save
String
Link copied to clipboard
fun
saveString
(
key
:
String
?
,
value
:
String
?
)
set
Data
List
Link copied to clipboard
fun
<
T
>
setDataList
(
tag
:
String
?
,
datalist
:
List
<
T
>
?
)