Key Value Store
class KeyValueStore<T : Any> : SharedPreferences.OnSharedPreferenceChangeListener, KeyValueRepo<String, T>
Content copied to clipboard
Types
Functions
Link copied to clipboard
By default, will remove all the data of current repo using doAllWithCurrentPaging, keys and unset
Link copied to clipboard
open suspend override fun keys(pagination: Pagination, reversed: Boolean): PaginationResult<String>
Content copied to clipboard
open suspend override fun keys( v: T, pagination: Pagination, reversed: Boolean): PaginationResult<String>
Content copied to clipboard
This method should use sorted by Keys search and take the PaginationResult. By default, it should use ascending sort for Keys
Link copied to clipboard
open override fun onSharedPreferenceChanged(sp: SharedPreferences, key: String)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun values(pagination: Pagination, reversed: Boolean): PaginationResult<T>
Content copied to clipboard
This method should use sorted by Keys search and take the PaginationResult. By default, it should use ascending sort for Keys
Properties
Link copied to clipboard
This flow must emit data each time when data by Key has been changed with set method or in any other way excluding cases of data removing
Link copied to clipboard
This flow must emit data each time when data by Key has been removed with unset/unsetWithValues methods or in any other way