getFloat

fun getFloat(key: String, defaultValue: Float): Float

Get a float from the preferences

Return

Value if found, else the defaultValue

Parameters

key

Key of the value

defaultValue

Default value