kutils / com.celites.kutils / android.content.SharedPreferences

Extensions for android.content.SharedPreferences

clear

fun SharedPreferences.clear(commit: Boolean = false): Unit

edit

fun SharedPreferences.edit(func: Editor.() -> Unit): Unit

put

fun SharedPreferences.put(commit: Boolean = false, params: Array<out Pair<String, Any>>): Unit

remove

fun SharedPreferences.remove(key: String): Unit