rocket / com.stavro_xhardha.rocket / Rocket / readStringAsFlow

readStringAsFlow

fun readStringAsFlow(key: String, defaultStringValue: String = ""): Flow<String>

Flow support for getting a String value from SharedPreferences

Parameters

key - the key provided to find the stored value

Exceptions

IllegalStateException - when the method inside throws an error of type java.lang.ClassCastException

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

See Also

readString