HomeRepository

class HomeRepository @Inject constructor(imageRetriever: ImageRetriever, imageDataSource: ImageDataSource)

The repository responsible for retrieving and creating images in the data source. This repository manages the interaction with the data source to handle image retrieval and creation operations.

Constructors

Link copied to clipboard
@Inject
constructor(imageRetriever: ImageRetriever, imageDataSource: ImageDataSource)

Functions

Link copied to clipboard
suspend fun addURIs(uris: List<String>)

Get the uri list sent from view, transform in model object image, and store it in the database.