mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-10-25 01:00:36 +00:00
add SharedPreferencesKeyValueRepo
This commit is contained in:
@@ -160,3 +160,9 @@ class KeyValueStore<T : Any> internal constructor (
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
inline fun <T : Any> SharedPreferencesKeyValueRepo(
|
||||
context: Context,
|
||||
name: String = "default",
|
||||
cacheValues: Boolean = false
|
||||
) = context.keyValueStore<T>(name, cacheValues)
|
||||
|
||||
Reference in New Issue
Block a user