fun readInt(key: String, defaultIntValue: Int = 0): Int
Reads an Int from SharedPreferences. If no value is found the method returns 0 by default
key
- the key provided to find the stored value
Return
Int the value
saved to SharedPreferences of type Int