KotPreferences
Toggle table of contents
common
featureBlocking
featureNoBlocking
Target filter
common
featureBlocking
featureNoBlocking
Switch theme
Search in API
Skip to content
KotPreferences
core
/
com.michaelflisar.kotpreferences.core.interfaces
/
StorageSetting
Storage
Setting
interface
StorageSetting
<
T
>
:
ReadOnlyProperty
<
SettingsModel
,
StorageSetting
<
T
>
>
Inheritors
AbstractSetting
Members
Members & Extensions
Types
Cache
Link copied to clipboard
class
Cache
<
T
>
(
val
data
:
T
)
Properties
default
Value
Link copied to clipboard
abstract
val
defaultValue
:
T
flow
Link copied to clipboard
abstract
val
flow
:
Flow
<
T
>
key
Link copied to clipboard
abstract
val
key
:
String
storage
Data
Type
Link copied to clipboard
abstract
val
storageDataType
:
StorageDataType
value
Link copied to clipboard
featureBlocking
val
<
T
>
StorageSetting
<
T
>
.
value
:
T
Functions
get
Cache
Link copied to clipboard
abstract
fun
getCache
(
)
:
StorageSetting.Cache
<
T
>
?
get
Cached
Value
Link copied to clipboard
abstract
fun
getCachedValue
(
)
:
T
?
get
Value
Link copied to clipboard
abstract
operator
fun
getValue
(
thisRef
:
SettingsModel
,
property
:
KProperty
<
*
>
)
:
StorageSetting
<
T
>
get
Value
Not
Null
Link copied to clipboard
common
featureBlocking
featureNoBlocking
expect
fun
<
T
>
StorageSetting
<
T
>
.
getValueNotNull
(
)
:
T
actual
fun
<
T
>
StorageSetting
<
T
>
.
getValueNotNull
(
)
:
T
actual
fun
<
T
>
StorageSetting
<
T
>
.
getValueNotNull
(
)
:
T
read
Link copied to clipboard
open
suspend
fun
read
(
)
:
T
reset
Link copied to clipboard
open
suspend
fun
reset
(
)
:
Boolean
try
Get
Value
Not
Null
Link copied to clipboard
common
featureBlocking
featureNoBlocking
expect
fun
<
T
>
StorageSetting
<
T
>
.
tryGetValueNotNull
(
)
:
T
?
actual
fun
<
T
>
StorageSetting
<
T
>
.
tryGetValueNotNull
(
)
:
T
?
actual
fun
<
T
>
StorageSetting
<
T
>
.
tryGetValueNotNull
(
)
:
T
?
update
Link copied to clipboard
abstract
suspend
fun
update
(
value
:
T
)