You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem dealing with the return of some info from a module that had been presented by another module. In my case I have two modules, Map and Search. The MapView notifies that it wants to search an address, so the MapPresenter begins the actions to show the Search module. Inside the Search module I make a text search, obtain the results, show it and select one. That selection has to be returned to the Map module. How can I achieve that?
Taking into account, and please correct me if I'm wrong, that the communication inter-module has to be achieved only via routing (not jumping between modules with notifications, closures and so on), I implemented this scenario:
(Sorry, maybe a sequence diagram would be better)
MapWireframe implements the regular interface but also another one I called MapModuleInput, so I pass to the SearchWireframe a MapWireframe implementing that interface when I begin the search action (blue).
After that, in the red flow, in the SearchView I begin the search case, it obtains the results from the interactor, etc. After that the results are presented and the user selects one (green), so the selected result is returned to the map via the MapModuleInput interface.
So, is that correct?
Thank you!
The text was updated successfully, but these errors were encountered:
emenegro
changed the title
Obtain return from another module
[Question] Obtain return from another module
Jan 27, 2015
I have a problem dealing with the return of some info from a module that had been presented by another module. In my case I have two modules, Map and Search. The
MapView
notifies that it wants to search an address, so theMapPresenter
begins the actions to show the Search module. Inside the Search module I make a text search, obtain the results, show it and select one. That selection has to be returned to the Map module. How can I achieve that?Taking into account, and please correct me if I'm wrong, that the communication inter-module has to be achieved only via routing (not jumping between modules with notifications, closures and so on), I implemented this scenario:
(Sorry, maybe a sequence diagram would be better)
MapWireframe
implements the regular interface but also another one I calledMapModuleInput
, so I pass to theSearchWireframe
aMapWireframe
implementing that interface when I begin the search action (blue).After that, in the red flow, in the
SearchView
I begin the search case, it obtains the results from the interactor, etc. After that the results are presented and the user selects one (green), so the selected result is returned to the map via theMapModuleInput
interface.So, is that correct?
Thank you!
The text was updated successfully, but these errors were encountered: