EasySharedPreferences

Additional

Language
Kotlin
Version
0.1.1 (Jul 4, 2019)
Created
Jul 2, 2019
Updated
Jul 4, 2019
Owner
Aman Jandiala (AmanpreetYatin)
Contributors
Aman Jandiala (AmanpreetYatin)
AmanWegile
2
Activity
Badge
Generate
Download
Source code
APK file

Blurb

Easy-SharedPreferences

A Simple Library to store data on shared preferences

Note: Purley Written in Kotlin

(https://jitpack.io/#AmanpreetYatin/Easy-SharedPreferences/0.1.1 )


EasySharedPreferences is a powerful library to work with key-value storages in Android

Download Step 1. Add this in your root (Project) build.gradle at the end of repositories: allprojects { repositories { ... maven { url "https://jitpack.io" } } } Step 2. Add the dependency implementation 'com.github.AmanpreetYatin:Easy-SharedPreferences:0.1.1'




Usage

JAVA EasySharedPreferenceConfig.Companion.initDefault(new EasySharedPreferenceConfig.Builder() .inputFileName("easy_preference") .inputMode(Context.MODE_PRIVATE) .build());


Kotlin EasySharedPreferenceConfig.initDefault(EasySharedPreferenceConfig.Builder() .inputFileName("easy_preference") .inputMode(Context.MODE_PRIVATE) .build()) }
override fun onCreate() { super.onCreate()


EXAMPLE::

EasySharedPreference.Companion.putString("KEY", "value"); EasySharedPreference.Companion.getString("KEY", "DefaultValue");