Last active
August 29, 2015 14:15
-
-
Save zsiegel/3fc0ff01c15d64263b23 to your computer and use it in GitHub Desktop.
Android MVP Presenter example
This file contains hidden or 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 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