setString

fun setString(key: String, value: String)

Function to set a String value to preference

Parameters

key

String key for calling it later

value

String value to store