Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 28, 2017 15:37
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 vestrel00/43ba3be57487caedcddce89c4b67cafd to your computer and use it in GitHub Desktop.
Save vestrel00/43ba3be57487caedcddce89c4b67cafd to your computer and use it in GitHub Desktop.
C: 1 - ui/common/presenter/BasePresenter.java
public abstract class BasePresenter<T extends MVPView> implements Presenter {
protected final T view;
protected BasePresenter(T view) {
this.view = view;
}
@Override
public void onStart(@Nullable Bundle savedInstanceState) {
}
@Override
public void onResume() {
}
@Override
public void onPause() {
}
@Override
public void onSaveInstanceState(Bundle outState) {
}
@Override
public void onEnd() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment