Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Easy SharedPreference

So easy to use. for lazy developer like me 사용하기 쉽습니다. 저 처럼 게으른 개발자를 위해

Usage

just set, setString setBoolean setInt... how to get? getString getBoolean getInt...

setString(context:Context, key:String, value:String)

setBoolean(context:Context, key:String, value:Boolean)

setInt(context:Context, key:String, value:Int)

getString(context: Context, key: String, defaultValue:String)

getBoolean(context: Context, key: String, defaultValue:Boolean)

getInt(context: Context, key: String, defaultValue:Int)

this is example.

if(pref().getBoolean(this, "isFirst", false)) { //get named by "isFirst", the default value is false.
	pref().setBoolean(this, "isFirst", true) //key "isFirst" to true
}

//if you want to make default value to true, just getBoolean(this, "isFirst", true)

About

Soooo easy to use sharedPreference for android.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages