Last active
February 8, 2017 14:26
-
-
Save MaksTuev/ad87391221e1ecda666b1c6c87a03dfe to your computer and use it in GitHub Desktop.
Rx activity result
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
public class SomePresenter { | |
ActivityNavigator navigator; | |
... | |
@Overide | |
void onLoad() { | |
subscribe(navigator.observeResult(ChangeFilterRoute.class), | |
filter-> { | |
//handle result | |
}); | |
} | |
... | |
public void changeFilter() { | |
activityNavigator.openForResult(new ChangeFilterRoute(filter)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/MaksTuev/real_mvp