CartographicBoundaryDataSource

Interface representing a data source for managing CartographicBoundary objects. This data source could be local storage, a remote server, or another solution for storing cartographic boundaries.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun create(cartographicBoundary: CartographicBoundary)

Creates a new CartographicBoundary in the data source.

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

Retrieves a stream (Flow) of all CartographicBoundary objects from the data source. This Flow will emit updates whenever a new cartographic boundary is created or an existing one is updated.

abstract fun retrieve(region: Region): Flow<CartographicBoundary?>

Retrieves a stream (Flow) of CartographicBoundary objects associated with a specific Region. The Flow might emit null if no cartographic boundary is found for the provided region.

Link copied to clipboard
abstract suspend fun update(cartographicBoundary: CartographicBoundary)

Updates an existing CartographicBoundary in the data source.