NoOpRecentCountryStore

A store that remembers nothing.

The default when no store is supplied, so the library never writes to disk unless the host asks for it.

Functions

Link copied to clipboard
open suspend override fun clear()

Forgets everything. Wire this to the host's "clear data" affordance.

Link copied to clipboard
open override fun observeRecentCountryCodes(): Flow<List<String>>

Emits the recent ISO alpha-2 codes, most recent first, whenever they change.

Link copied to clipboard
open suspend override fun recordSelection(countryCode: String)

Records that the user selected countryCode, moving it to the front.