Prefs
Simple Android SharedPreferences wrapper.
Repository
Add this in your root build.gradle
file (not your module build.gradle
file):
Dependency
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
Usage
This is the basic usage, you can read values (specifying a default value or not) and write values like so:
You can also specify a custom name for the preferences' name:
And force the re-instantiation of the Prefs instance:
You can also set and retrieve ordered String sets
and unordered String sets
.