Package-level declarations

Functions

Link copied to clipboard
inline fun <T : Any> String.fromJson(factory: JsonAdapter.Factory, customBuilder: Moshi.Builder = Moshi.Builder()): T?
Link copied to clipboard
inline fun <T : Any> SharedPreferences.getObject(factory: JsonAdapter.Factory, key: String): T?
Link copied to clipboard
inline fun <T> SharedPreferences.obj(factory: JsonAdapter.Factory, crossinline key: (KProperty<*>) -> String = KProperty<*>::name): ReadWriteProperty<Any, T?>

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

Link copied to clipboard
fun SharedPreferences.putObject(factory: JsonAdapter.Factory, key: String, obj: Any?)
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> T.toJson(factory: JsonAdapter.Factory, customBuilder: Moshi.Builder = Moshi.Builder()): String
Link copied to clipboard
inline fun <T : Any> String.toJsonObjectArrayList(factory: JsonAdapter.Factory, customBuilder: Moshi.Builder = Moshi.Builder()): ArrayList<T>?
Link copied to clipboard
inline fun <T : Any> String.toJsonObjectList(factory: JsonAdapter.Factory, customBuilder: Moshi.Builder = Moshi.Builder()): List<T>?
Link copied to clipboard
inline fun <T : Any> String.toJsonObjectMutableList(factory: JsonAdapter.Factory, customBuilder: Moshi.Builder = Moshi.Builder()): MutableList<T>?