Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
How it Works | ||
========== | ||
![](login-classes.png) | ||
|
||
1. View(Activity, Fragment, ...) calls presenter methods whenever there're user interaction | ||
2. Presenter implementation calls the interactor(use case handler) to get results from business/domain layer | ||
3. Interactor implementation returns the results or just returns the control to presenter implementation by calling listener methods | ||
4. Presenter implementation calls view methods to update the UI by calling view interface. | ||
|
||
View, Presenter, Interactor and Listener interfaces are used to remove tight coupling. | ||
|
||
View becomes too humble to test. We can use fake(simulator) presenter to test view. | ||
|
||
Presenter and Interactor can be tested. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.