RegionsFromCartographicBoundaryRepository

class RegionsFromCartographicBoundaryRepository @Inject constructor(currentRegionDataSource: CurrentRegionDataSource, cartographicBoundaryDataSource: CartographicBoundaryDataSource)

The repository that exposes and manipulates regions from cartographic boundary screen's flows.

Constructors

@Inject
constructor(currentRegionDataSource: CurrentRegionDataSource, cartographicBoundaryDataSource: CartographicBoundaryDataSource)

Properties

Link copied to clipboard

Using the current region, the flow searches for the cartographic boundary that this region belongs to.

Functions

Link copied to clipboard
suspend fun switchAll()

Switch all the possible regions (excluding the main region) in a specific index to visible or invisible.

Link copied to clipboard
suspend fun switchRegionAt(index: Int)

Switch the region in a specific index to visible or invisible.