Skip to content

Instantly share code, notes, and snippets.

@MaksTuev
Last active February 8, 2017 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaksTuev/ad87391221e1ecda666b1c6c87a03dfe to your computer and use it in GitHub Desktop.
Save MaksTuev/ad87391221e1ecda666b1c6c87a03dfe to your computer and use it in GitHub Desktop.
Rx activity result
public class SomePresenter {
ActivityNavigator navigator;
...
@Overide
void onLoad() {
subscribe(navigator.observeResult(ChangeFilterRoute.class),
filter-> {
//handle result
});
}
...
public void changeFilter() {
activityNavigator.openForResult(new ChangeFilterRoute(filter));
}
}
@MaksTuev
Copy link
Author

MaksTuev commented Feb 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment