RichUtils / pyxis.uzuki.live.richutilskt.utils / RPreference / put

put

fun put(key: String, value: String): Boolean

put String to SharedPreference

Parameters

key - key of preference

value - value to input

fun put(key: String, value: CharSequence): Boolean

put CharSequence to SharedPreference

Parameters

key - key of preference

value - value to input

fun put(key: String, value: Boolean): Boolean

put Boolean to SharedPreference

Parameters

key - key of preference

value - value to input

fun put(key: String, value: Int): Boolean

put Int to SharedPreference

Parameters

key - key of preference

value - value to input

fun put(key: String, value: Long): Boolean

put Long to SharedPreference

Parameters

key - key of preference

value - value to input

fun put(key: String, value: Float): Boolean

put Float to SharedPreference

Parameters

key - key of preference

value - value to input

fun put(key: String, value: Double): Boolean

put Double to SharedPreference

Parameters

key - key of preference

value - value to input

fun put(key: String, value: Char): Boolean

put Char to SharedPreference

Parameters

key - key of preference

value - value to input

fun put(pair: Pair<String, Any>): Unit

Put any value to SharedPreference

Parameters

pair - Pair of String and Any