class RPreference
fun clear(): Boolean
clear all of preferences |
|
fun delete(key: String): Boolean
delete key-value from SharedPreference |
|
fun getBoolean(key: String, def: Boolean = false): Boolean
get Boolean value from SharedPreference |
|
fun getChar(key: String, def: Char = '\u0000'): Char
get Char value from SharedPreference |
|
fun getCharSequence(key: String, def: CharSequence = ""): CharSequence
get CharSequence value from SharedPreference |
|
fun getDouble(key: String, def: Double = 0.toDouble()): Double
get Double value from SharedPreference |
|
fun getFloat(key: String, def: Float = 0f): Float
get Float value from SharedPreference |
|
fun getInt(key: String, def: Int = 0): Int
get Int value from SharedPreference |
|
fun getLong(key: String, def: Long = 0): Long
get Long value from SharedPreference |
|
fun getString(key: String, def: String = ""): String
get String value from SharedPreference |
|
fun put(key: String, value: String): Boolean
put String to SharedPreference fun put(key: String, value: CharSequence): Boolean
put CharSequence to SharedPreference fun put(key: String, value: Boolean): Boolean
put Boolean to SharedPreference fun put(key: String, value: Int): Boolean
put Int to SharedPreference fun put(key: String, value: Long): Boolean
put Long to SharedPreference fun put(key: String, value: Float): Boolean
put Float to SharedPreference fun put(key: String, value: Double): Boolean
put Double to SharedPreference fun put(key: String, value: Char): Boolean
put Char to SharedPreference fun put(pair: Pair<String, Any>): Unit
Put any value to SharedPreference |
fun getInstance(c: Context): RPreference |