Created
April 13, 2021 02:53
-
-
Save MtaufiqH/ec401f7282d46b5c2b0222be3449acc1 to your computer and use it in GitHub Desktop.
A dynamis SharedPrefs that implemented with GSON inspired by https://with.isfa.xyz/sharedpref-dinamis/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // to use it. | |
| private val preferencesManager by lazy { | |
| SharedPrefreencesManager(context) | |
| } | |
| private val key_uname = "username" | |
| preferencesManager.add(key_uname, "isfaaghyth") | |
| ... | |
| println(preferencesManager.get(key_name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment