Package-level declarations

Properties

Link copied to clipboard
val gson: Gson
Link copied to clipboard
Link copied to clipboard
val gsonWithDate: Gson
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> File.asJsonFromText(charset: Charset = Charsets.UTF_8)
Link copied to clipboard
inline fun <T : Any> Gson.fromJson(json: String): T
Link copied to clipboard
inline fun <T> Gson.fromJsonTypeToken(json: String): T
Link copied to clipboard
inline fun <T> SharedPreferences.getObject(key: String): T?
Link copied to clipboard
inline fun <T> SharedPreferences.obj(crossinline key: (KProperty<*>) -> String = KProperty<*>::name): ReadWriteProperty<Any, T?>

Use sharedPreferences.obj( key = { "MY_KEY" } )

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard