getFloatAsStream

abstract fun getFloatAsStream(key: String, defValue: Float): Flow<Float>

Returns a Flow of the Float value stored under key.

Emits defValue when key is absent or has been removed.

Return

A cold Flow that emits the current value and subsequent updates.

Parameters

key

Storage key to observe.

defValue

Emitted when key is not present.