KotPreferences
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
KotPreferences
core
/
com.michaelflisar.kotpreferences.core.classes
/
BaseStorage
Base
Storage
abstract
class
BaseStorage
:
Storage
Members
Constructors
Base
Storage
Link copied to clipboard
constructor
(
)
Properties
cache
Link copied to clipboard
abstract
val
cache
:
Boolean
change
Flow
Link copied to clipboard
open
override
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
open
suspend override
fun
<
T
>
onValueChanged
(
setting
:
StorageSetting
<
T
>
,
value
:
T
)
set
Link copied to clipboard
abstract
suspend
fun
<
T
>
set
(
key
:
StorageKey
<
*
>
,
value
:
T
)