getFloat

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

Function to get Float value from preference

Return

Float from given key if exist, defaultValue if not

Parameters

key

String key to refer

defaultValue

Float to return if the key doesn't return any value