rocket / com.stavro_xhardha.rocket / Rocket / readInt

readInt

fun readInt(key: String, defaultIntValue: Int = 0): Int

Reads an Int from SharedPreferences. If no value is found the method returns 0 by default

Parameters

key - the key provided to find the stored value

Return
Int the value saved to SharedPreferences of type Int