rocket / com.stavro_xhardha.rocket / Rocket / readString

readString

fun readString(key: String, defaultStringValue: String = ""): String

Reads a String from SharedPreferences

Parameters

key - the key provided to find the stored value

Exceptions

java.lang.ClassCastException - if the key is found but is not a String

Return
String the data of type String if found if not returns an empty String