rocket / com.stavro_xhardha.rocket / Rocket / readFloat

readFloat

fun readFloat(key: String, defaultFloatValue: Float = 0f): Float

Reads an Float from SharedPreferences. If no value is found the method returns 0f by default

Parameters

key - the key provided to find the stored value

Return
the value saved to SharedPreferences of type Float