Editor

data class Editor(val editor: SharedPreferences.Editor)

When inserting many keys use this function, this is because apply for every key is very expensive on memory

Constructors

Link copied to clipboard
constructor(editor: SharedPreferences.Editor)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun apply()
Link copied to clipboard
fun <T> setKeyRaw(path: String, value: T)

Always remember to call apply after