getInt

fun getInt(key: String, defaultValue: Int): Int

Get an int from the preferences

Return

Value if found, else the defaultValue

Parameters

key

Key of the value

defaultValue

Default value