rocket / com.stavro_xhardha.rocket / Rocket / readIntAsFlow

readIntAsFlow

fun readIntAsFlow(key: String, defaultIntValue: Int = 0): Flow<Int>

Flow support for getting and Int from SharedPreferences. If no value is found the method emits 0 by default

Parameters

key - the key provided to find the stored value

Return
Flow the value saved to SharedPreferences of type Flow