getLong

fun getLong(key: String, defValue: Long): Long(source)

Retrieves a long value from the preferences.

Parameters

key

the name of the preference to retrieve

defValue

value to return if this preference does not exist

Throws

if key wasn't specified as part of this migration