v0.3.2-SNAPSHOT: added android-specific code and implementation, including defaultNamedStorage()
This commit is contained in:
1 parent
1a46c8cab3
commit
972b033be1
7 files changed
+169
-3
No files matched your search
@@ -218,7 +218,19 @@ class MemoryKVStorage(copyFrom: KVStorage? = null) : KVStorage {
|
||||
* - otherwise, the folder will be created in "`~/.local_storage`" parent directory
|
||||
* (which also will be created if needed).
|
||||
*
|
||||
* - For the native platorms it is not yet implemented (but will be soon).
|
||||
* - In Android (new!) it is implemented using preferences, but initializing is needed in
|
||||
* main activity `onCreate`, somewhat like:
|
||||
* ```kotlin
|
||||
* override fun onCreate(savedInstanceState: Bundle?) {
|
||||
* super.onCreate(savedInstanceState)
|
||||
* // set the Context which Preferences will be used for
|
||||
* // defaultNamedStorage
|
||||
* net.sergeych.bintools.AndroidKV.init(this)
|
||||
* }
|
||||
* ```
|
||||
* see also `AndroidKV` and `SharedPreferencesKVStorage` for Android
|
||||
*
|
||||
* - For the native platforms it is not yet implemented (but will be soon).
|
||||
*
|
||||
* See [DataKVStorage] and [DataProvider] to implement a KVStorage on filesystems and like,
|
||||
* and `FileDataProvider` class on JVM target.
|
||||
|
||||
Reference in new issue
Block a user