Skip to content

Instantly share code, notes, and snippets.

@zsiegel
Last active August 29, 2015 14:15
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 zsiegel/3fc0ff01c15d64263b23 to your computer and use it in GitHub Desktop.
Save zsiegel/3fc0ff01c15d64263b23 to your computer and use it in GitHub Desktop.
Android MVP Presenter example
public class MyPresenter {
public MyPresenter(IView viewInterface){
}
public void start() {
//this should be called from a onResume() lifecycle method or similar
//subscribe here
}
public void finish() {
//this should be called from a onStop() lifecycle method or similar
//unsubscribe here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment