I am implementing the coroutine for first time. I am following MVP pattern for a simple login app. Here is my code flow – The login button clicked will follow this direction – LoginFragment -> LoginPresenter -> Repository -> APIRepository -> RetrofitInterface The login response will follow this direction – RetrofitInterface -> APIRepository -> Repository -> LoginPresenter -> LoginFragment Here
Tag: mvp
Android MVP – Calls the server
I started to learn MVP but I have a few questions related the communication between the Model and the Presenter, for example a login feature Activity will get all the fields, send to the presenter, the presenter will validate and if it’s everything as expected the presenter will call the model to send to the server, but this call could