Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 560 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 560 Bytes

Core Preferences

Contains a set of extensions and factory functions to work with SharedPreferences

  • Access to default preferences
val prefs = defultPrefs(context)
  • Or to custom preferences
val customPrefs = customPrefs(context,"MyPreferences")
  • Extensions to set and get primitive types values in SharedPreferences
val prefs = defultPrefs(context)
prefs[SOME_KEY] = "SomeValue"
val string = prefs[SOME_KEY]

For full list of functions, please look to the source code, or view documentation