RegionsFromCartographicBoundaryViewModel

class RegionsFromCartographicBoundaryViewModel @Inject constructor(regionsFromCartographicBoundaryRepository: RegionsFromCartographicBoundaryRepository) : ViewModel

The RegionsAndImagesViewModel is the point of connection between the Regions From Cartographic boundary screen and its Repository

Constructors

Link copied to clipboard
@Inject
constructor(regionsFromCartographicBoundaryRepository: RegionsFromCartographicBoundaryRepository)

Properties

Link copied to clipboard

The stream (Flow) of the current cartographic boundary converted into UI object.

Functions

Link copied to clipboard
Link copied to clipboard
fun switchAll(): Job

Delegates the repository to update the all of the regions of the current cartographic boundary in the model.It creates a coroutine to do that.

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

Delegates the repository to update the current cartographic boundary's region in the model. It creates a coroutine to do that.