get Float

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

Method to get float from preference

Return

float value of desired preference

Parameters

key

preference's name

default

preference's value when the value is null

Sources

Link copied to clipboard