KotPreferences
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
KotPreferences
core
/
com.michaelflisar.kotpreferences.core.interfaces
/
Storage
Storage
interface
Storage
Inheritors
BaseStorage
Members
Properties
cache
Link copied to clipboard
abstract
val
cache
:
Boolean
change
Flow
Link copied to clipboard
abstract
val
changeFlow
:
Flow
<
SettingsChangeEvent
<
*
>
>
Functions
clear
Link copied to clipboard
abstract
suspend
fun
clear
(
)
abstract
suspend
fun
clear
(
key
:
StorageKey
<
*
>
)
clear
Deprecated
Keys
Link copied to clipboard
abstract
suspend
fun
clearDeprecatedKeys
(
keysToKeep
:
List
<
StorageKey
<
*
>
>
)
get
Link copied to clipboard
abstract
fun
<
T
>
get
(
key
:
StorageKey
<
*
>
,
defaultValue
:
T
)
:
Flow
<
T
>
on
Value
Changed
Link copied to clipboard
abstract
suspend
fun
<
T
>
onValueChanged
(
setting
:
StorageSetting
<
T
>
,
value
:
T
)
set
Link copied to clipboard
abstract
suspend
fun
<
T
>
set
(
key
:
StorageKey
<
*
>
,
value
:
T
)