getInt

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

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Return

an int, or defaultValue

Parameters

key

a String key

defaultValue

Value to return if key does not exist