CurrentRegionDataSource

Interface representing a data source for managing the currently selected region on a map. This data source might use in-memory storage, user preferences, or another mechanism to track the current region selection.

Inheritors

Functions

Link copied to clipboard
abstract fun retrieve(): Flow<Region?>

Retrieves the currently selected Region from the data source as a stream of updates using Kotlin's Flow API. The Flow will emit a new value whenever the selected region changes, or null if there is no currently selected region.

Link copied to clipboard
abstract fun update(region: Region)

Updates the currently selected region in the data source with the provided Region object.