getIntAsStream

abstract fun getIntAsStream(key: String, defValue: Int): Flow<Int>

Returns a Flow of the Int 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.