jeudi 10 décembre 2020

MVVM read LiveData from API but then let user to manipulate it [closed]

My simple program should work this way:

1) Json data being pulled by Retrofit to a repository and through LiveData it comes to an interface;
2) User interacts and modifying data locally without changing it on API;

So far 1 works perfectly fine but I don't know how to make a program switch from LiveData to a local copy and let user change it locally without touching API;

Aucun commentaire:

Enregistrer un commentaire