getPreference

fun getPreference(key: Preferences.Key<Int>, default: Int = Int.empty()): Int
fun getPreference(key: Preferences.Key<Long>, default: Long = Long.empty()): Long
fun getPreference(key: Preferences.Key<Float>, default: Float = Float.empty()): Float
fun getPreference(key: Preferences.Key<String>, default: String = String.empty()): String
fun getPreference(key: Preferences.Key<Boolean>, default: Boolean = false): Boolean