HomeViewModel

class HomeViewModel @Inject constructor(homeRepository: HomeRepository) : ViewModel

The HomeViewModel is the point of connection between the Home screen and its Repository

Constructors

Link copied to clipboard
@Inject
constructor(homeRepository: HomeRepository)

Functions

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

Delegates the Repository to create the images the model based on the provided uris. It creates a coroutine to do that.