SharedPrefKmm
Toggle table of contents
1.1.1
common
Platform filter
common
Switch theme
Search in API
SharedPrefKmm
SharedPrefKmm
/
net.k1ra.sharedprefkmm
/
SharedPreferences
Shared
Preferences
class
SharedPreferences
(
collection
:
String
)
Members
Constructors
Shared
Preferences
Link copied to clipboard
constructor
(
collection
:
String
)
Properties
kotlin
Json
Link copied to clipboard
var
kotlinJson
:
Json
Functions
convert
Request
Body
Link copied to clipboard
inline
fun
<
B
>
convertRequestBody
(
body
:
B
?
=
null
)
:
ByteArray
convert
Response
Body
Link copied to clipboard
inline
fun
<
T
>
convertResponseBody
(
data
:
ByteArray
)
:
T
delete
Link copied to clipboard
suspend
fun
delete
(
key
:
String
)
get
Link copied to clipboard
inline suspend
fun
<
T
>
get
(
key
:
String
)
:
T
?
get
From
Db
And
Decrypt
Link copied to clipboard
suspend
fun
getFromDbAndDecrypt
(
key
:
String
)
:
ByteArray
?
set
Link copied to clipboard
inline suspend
fun
<
B
>
set
(
key
:
String
,
value
:
B
?
)
set
To
Db
And
Encrypt
Link copied to clipboard
suspend
fun
setToDbAndEncrypt
(
key
:
String
,
data
:
ByteArray
)