We can not directly access a view's object from another view mediator.
To achieve this, we need to dispatch the events & then access the view's objects from another view.
You can not inject a view object in another view mediator & access.
Sample:
I have a MainView which has viewstack consisting of 3 childs (1.UserScreen 2.ProjectsScreen 3.ConfigScreen)
Now i am in ProjectsScreen & on click of a button, want to display the UserScreen by changing the viewstack index on MainView.
In ProjectsScreenMediator you can inject MainScreen view & then change the ViewStack selectedIndex.
To achieve this, we need to dispatch the events & then access the view's objects from another view.
You can not inject a view object in another view mediator & access.
Sample:
I have a MainView which has viewstack consisting of 3 childs (1.UserScreen 2.ProjectsScreen 3.ConfigScreen)
Now i am in ProjectsScreen & on click of a button, want to display the UserScreen by changing the viewstack index on MainView.
In ProjectsScreenMediator you can inject MainScreen view & then change the ViewStack selectedIndex.