getFloat

abstract suspend fun getFloat(scope: String, key: String, defaultValue: Float = 0.0f): Float

Retrieves a Float value by key from the given scope.

Return

The stored value or defaultValue.

Parameters

scope

The storage scope name.

key

The key to look up.

defaultValue

The fallback value if the key is missing. Defaults to 0f.